level 5
领跑儿者
楼主
fs=16000; %取样频率
duration=5; %录音时间
fprintf('Press any key to start %g seconds of recording...\n',duration);
pause;
fprintf('Recording...\n');
y=audio;
record(duration*fs,fs); %duration*fs 是总的采样点数
fprintf('Finished recording.\n');
fprintf('Press any key to play the recording...\n');
pause;
audioplay(y,fs);
运行后。。。
未定义函数或变量 'audioplay'。
出错 record01 (line 6)
y=audioplay;
2015年05月15日 01点05分
1
duration=5; %录音时间
fprintf('Press any key to start %g seconds of recording...\n',duration);
pause;
fprintf('Recording...\n');
y=audio;
record(duration*fs,fs); %duration*fs 是总的采样点数
fprintf('Finished recording.\n');
fprintf('Press any key to play the recording...\n');
pause;
audioplay(y,fs);
运行后。。。
未定义函数或变量 'audioplay'。
出错 record01 (line 6)
y=audioplay;