"audiorecorder" によるオブジェクトで​長時間、リアルタイム​に音声データを取り込​むことは可能ですか?

9 views (last 30 days)
MathWorks Support Team
MathWorks Support Team on 28 Mar 2022
長時間(数時間~数日)の音声データを取り込み、擬似的なリアルタイム(1 m秒以内の遅延)で処理したいのですが、"audiorecorder" によるオブジェクトで可能ですか?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 28 Mar 2022
"audiorecorder" オブジェクトと timer オブジェクトを使って "getaudiodata" メソッドで指定時間ごとにデータを読み込むこともできますが、"audiorecorder" オブジェクトはこのような長時間の使用を想定したものではなく、時間とともにバッファ内の音声データのサイズが大きくなり、最終的にはオーバーフローとなります。
長時間の音声データ取り込みの場合は "audiorecorder" オブジェクトの代わりに、Audio System Toolbox の "audioDeviceReader" オブジェクトを使用して、音声をキャプチャすることができます。
詳しくは、以下のドキュメントページを参照してください。
https://www.mathworks.com/help/audio/ref/audiodevicereader-system-object.html

More Answers (0)

Products


Release

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!