audiorecorder is "not intended for long recordings". What is?

5 ビュー (過去 30 日間)
Danijel
Danijel 2017 年 9 月 28 日
回答済み: Walter Roberson 2019 年 2 月 16 日
Hi, I need to do a continious, long audio recording.
I tried audiorecorder object, set up a callback using TimerFcn and TimerPeriod properties to have a periodic frame-by-frame audio data readout. It worked fine, but I soon figured that audiorecorder accumulates audio in an infinite buffer, and soon consumes too much memory. The docs say: " audiorecorder is not intended for long, high-sample-rate recording. audiorecorder uses system memory for storage and does not use disk buffering. When you attempt a large recording, your MATLAB performance sometimes degrades over time."
Is there a way to get around this?
If audiorecorder is "not intended for long recordings", what is?
Should I switch to audioDeviceReader from AudioSystemToolbox?
Or maybe daq from Data Acquisition Toolbox?
  3 件のコメント
Danijel
Danijel 2017 年 9 月 28 日
Needs to record for hours, but no audio is saved, just real time analysis.
Varun Wadia
Varun Wadia 2019 年 2 月 16 日
Did this ever get resolved? I'm having a similar issue - but actually need to save the file

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2019 年 2 月 16 日
Yes, audio device reader from Audio System Toolbox is what you should be using for real time processing .

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by