主题:如何用Matlab实现麦克风声音录入
llyloverw
[专家分:0] 发布于 2007-10-11 09:36:00
对这麦克风话筒讲话,怎样用Matlab语言实现语音内容的录入和保存!急!
回复列表 (共1个回复)
沙发
llyloverw [专家分:0] 发布于 2007-10-11 12:35:00
%声音录入
recorder = audiorecorder(44100,16,2);
recordblocking(recorder,3.5);
%获取声音数据
audioarray = getaudiodata(recorder);
stop(recorder);
%声音播放
play(recorder);
%波形显示
plot(audioarray);
声音数据存储
wavwrite(audioarray,'audio.wav');
grid on;
我来回复