How to record audio for infinite time?

2 ビュー (過去 30 日間)
Harsha KVK
Harsha KVK 2022 年 7 月 11 日
回答済み: Adithi 2022 年 7 月 14 日
I am trying to build an audioplayer application. In order to make the application user friendly recording must be controlled by user. But recordblocking() always takes a certain time in seconds. How can I remove this time limit?

回答 (2 件)

jibrahim
jibrahim 2022 年 7 月 12 日
Hi Harsha,
You can record for as long as you want with audioDeviceReader:
deviceReader = audioDeviceReader;
while 1 % for example
% Record a frame
acquiredAudio = deviceReader();
end

Adithi
Adithi 2022 年 7 月 14 日
Hello,
I understand that you are trying to figure out how to record audio for infinite time using recordblocking(). But the recordblocking takes 2 parameter recorderObj and the length of the audio. Since the purpose of this function is to record the audio and hold control until recording completes, we should look for other options like using record function.
Refer to the below documentation on for more information on record function.
Hope this helps!.

カテゴリ

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