pls I what to know the procedure to follow, in order to acquire sound using sound card and MATLAB
Info
This question is closed. Reopen it to edit or answer.
Show older comments
pls I what to know the procedure to follow, in order to acquire sound using sound card and MATLAB
Answers (2)
Azzi Abdelmalek
on 24 Aug 2013
Edited: Azzi Abdelmalek
on 24 Aug 2013
If you have Data Acquisition toolbox
% Create analog input object
ai = analoginput('winsound');
addchannel(ai, 1);
% set the frequency to 7000 Hz and time aquisition to 10 second
ai.SampleRate = 7000;
ai.SamplesPerTrigger = 7000*10;
ai.TriggerType = 'Immediate';
% Start speaking or singing in your microphone
start(ai)
[d,t] = getdata(ai);
% Now check your sound by
sound(d)
For more details look at
1 Comment
bala sadiq
on 1 Sep 2013
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!