"audiorecorder" によるオブジェクトで長時間、リアルタイムに音声データを取り込むことは可能ですか?
9 views (last 30 days)
Show older comments
MathWorks Support Team
on 28 Mar 2022
Answered: MathWorks Support Team
on 28 Mar 2022
長時間(数時間~数日)の音声データを取り込み、擬似的なリアルタイム(1 m秒以内の遅延)で処理したいのですが、"audiorecorder" によるオブジェクトで可能ですか?
Accepted Answer
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
0 Comments
More Answers (0)
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!