How can I record using audiorecorder function on MATLAB more than 2 channels?

6 ビュー (過去 30 日間)
TRISHITA BANERJEE
TRISHITA BANERJEE 2018 年 4 月 17 日
コメント済み: Walter Roberson 2018 年 4 月 20 日
Hi I need to record output from three channels using audiorecorder functions. Currently I can record upto two channels and I am using the code recOBJ = audiorecorder(fs,nBits,2,-1);But the program fails if i change "2" to 3 or more numbers.Need help in this regard

回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 4 月 17 日
This is not possible using audiorecorder.
https://www.mathworks.com/help/audio/gs/real-time-audio-in-matlab.html
Question: are you doing sound location? If you are then it is important to synchronize the channels. Some people invoke multiple audiorecorder to try to handle multiple channels, but that does not have synchronization accuracy.
  2 件のコメント
TRISHITA BANERJEE
TRISHITA BANERJEE 2018 年 4 月 20 日
This is not correct for my work
Walter Roberson
Walter Roberson 2018 年 4 月 20 日

What is not correct for your work? Do you mean that you are not doing sound location?

If you do not need careful channel synchronization, then sometimes it is satisfactory to combine samples from different devices, possibly even devices with different kinds of interfaces. But it is usually better to have all of the channels on the same device and use the calls provided by the Audio System Toolbox (at least until you start to fill up the bandwidth of the interface.)

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

カテゴリ

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