代码:
Fs =16000;
nBits = 16 ;
nChannels = 2 ;
switch nargin
case 1
recObj = audiorecorder(Fs,nBits,nChannels);
disp('Start speaking.')
recordblocking(recObj, Time);
disp('End of Recording.');
Voice = getaudiodata(recObj);
case 2
错误提示:
错误使用 Voice2Txt (line 11)
Device Error: Invalid sample rate
这是什么问题啊