私はmatlabに問題があります
スピーチを 2 秒間録音し、録音した音声を読み取ってプロットしたい
私はコードを使用します
FS = 8000;
new_wav = wavrecord(2*FS,FS,'int16');
x = wavread(new_wav);
plot(x);
しかし、エラーが表示されます
??? Error using ==> fileparts at 20
Input must be a row vector of characters.
Error in ==> wavread>open_wav at 193
[pat,nam,ext] = fileparts(file);
Error in ==> wavread at 65
[fid,msg] = open_wav(file);
Error in ==> test at 2
x = wavread(new_wav);
正しく録音されたサウンド ファイルをプロットしましたが、matlab を使用して新しいサウンド ファイルを録音しようとすると、このエラーが発生します。
FS と 'int16' を変更してさまざまな方法を試しましたが、何も起こりません。
ありがとう