audiorecorderで音声が録音できない
Ältere Kommentare anzeigen
mac book pro の内蔵マイクを入力としてaudiorecorderを使って5秒間録音してその波形を描画するプログラミングを組んだのですが、何回やっても波形が0の物しか描画されません。どうしてでしょうか?
audiodevinfoではちゃんと認識しており、コードもエラーが出ていないです。また、macのシステム設定も確認しましたがそれらしい問題がみつかりませんでした。
以下が利用したコードです。
rec0bj = audiorecorder(44100,16,1,0);
disp('Start recording');
recordblocking(rec0bj, 5);
disp('End of recording');
% play(rec0bj);
y = getaudiodata(rec0bj);
plot(y);
Akzeptierte Antwort
Weitere Antworten (1)
Atsushi Matsumoto
am 27 Nov. 2019
0 Stimmen
この問題、R2019b Update2で修正されたようです。
MATLABデスクトップ右上にあるベルのアイコンからUpdateパッチをインストールして下さい。
1 Kommentar
Akira
am 27 Nov. 2019
Kategorien
Mehr zu オーディオとビデオ finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!