代码:
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
这是什么问题啊
你好,这有可能是电脑设备问题,检查一下声卡,看能不能比如说在qq发语音之类的,我的电脑试了这段代码是可以运行成功的