audiorecorderで音声が録音できない
    5 views (last 30 days)
  
       Show older comments
    
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);
0 Comments
Accepted Answer
  Shoumei
      
 on 17 Nov 2019
        MATLABの実行ファイル /Applications/MATLAB_R2019b.app/bin/matlab を直接実行して解決しませんか?
2 Comments
More Answers (1)
  Atsushi Matsumoto
    
 on 27 Nov 2019
        この問題、R2019b Update2で修正されたようです。
MATLABデスクトップ右上にあるベルのアイコンからUpdateパッチをインストールして下さい。
See Also
Categories
				Find more on オーディオとビデオ in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


