pls I what to know the procedure to follow, in order to acquire sound using sound card and MATLAB

pls I what to know the procedure to follow, in order to acquire sound using sound card and MATLAB

Answers (2)

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

This question is closed.

Asked:

on 24 Aug 2013

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!