Interface microphones using matlab
古いコメントを表示
I have three microphones and i want to record the signals from the microphones simultaneously, is it possible in matlab?
i used the below mentioned program and i can acquire data from one microphone but im not able to get from all the three at the same time
clear all
close all
clc
AI = analoginput('winsound');
addchannel(AI, 1);
Fs = 8000;
set (AI, 'SampleRate', Fs)
duration = 20;
set(AI, 'SamplesPerTrigger', duration*Fs);
start(AI);
data = getdata(AI);
delete(AI)
10 件のコメント
Walter Roberson
2012 年 4 月 18 日
Can you use multiple addchannel() for the additional microphones ?
RAJKUMAR Palaniappan
2012 年 4 月 19 日
Geoff
2012 年 4 月 19 日
I assume you have at least 3 input channels on your sound card! Is there more than one sound card in your system? You may need to specify which one you want in your call to analoginput(). Also, I thought the addchannel() call took zero-based hardware indices, so maybe you want channels 0, 1 and 2. Have you tried adding them all at once?
addchannel(AI, [0 1 2]);
or addchannel(AI, [1 2 3]);
RAJKUMAR Palaniappan
2012 年 4 月 19 日
Daniel Shub
2012 年 4 月 19 日
Is this a theoretical question or do you have actual microphones/soundcards. If it is not theoretical, are you willing to change your computer OS and the microphones/soundcards? If you are not willing to change, what OS and microphones/soundcards are you using. Can you record from each microphone individually?
Walter Roberson
2012 年 4 月 19 日
I suspect the dual jacks are for convenience and are both leading to the same sound card.
RAJKUMAR Palaniappan
2012 年 4 月 20 日
RAJKUMAR Palaniappan
2012 年 4 月 20 日
RAJKUMAR Palaniappan
2012 年 4 月 20 日
RAJKUMAR Palaniappan
2012 年 4 月 20 日
採用された回答
その他の回答 (1 件)
Goz Qht
2020 年 2 月 26 日
0 投票
clear all close all clc AI = analoginput('winsound'); addchannel(AI, 1); Fs = 8000; set (AI, 'SampleRate', Fs) duration = 20; set(AI, 'SamplesPerTrigger', duration*Fs); start(AI); data = getdata(AI); delete(AI)
カテゴリ
ヘルプ センター および File Exchange で Audio I/O and Waveform Generation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!