how to connect a microphone and process its signal in MATLAB

Status
Not open for further replies.

omidsht

Member level 2
Joined
Dec 24, 2007
Messages
43
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,556
matlab microphone

how to connect a microphone and process its signal in MATLAB in real-time ?

i want to connect a microphone to matalb and process the sound in real-time ( i want to do noise cancellation with adaline in real-time)

please help me
thanks

omid sharifi
 

matlab microphone input

For what I know Matlab is capable of processing .wav files, so you could acquire samples from MIC IN line and then process the wav file in Matlab to verify your algorithm, but I don't know how to do it in Real Time ... I suppose you have to customize the audio card driver to do it.

Regards
Mowgli
 

microphone matlab

omidsht said:
how to connect a microphone and process its signal in MATLAB in real-time ?

i want to connect a microphone to matalb and process the sound in real-time ( i want to do noise cancellation with adaline in real-time)

please help me
thanks

omid sharifi

There's a comand in matlab called wavrecord to record from the mic input
X=wavrecord(N,FS,CH)
Where,
CH:Number of channels, means mono or stereo
FS:Sampling rate to get samples
N:Number of samples to record then it stops.
If N=10*FS, then matlab will record 10 seconds.
and X is a row vector of the recorded samples.
u can playback the vector X by the comand wavplay
wavplay(X, FS)

Hope that's useful
 
using matlab microphone

I suggest you to have a look in data acquisition toolbox. you dont have to work with .wav files.
 

matlab wavrecord

Is it for Active Noise Control?
Why don't you use a DSP it got RTDX (Real Time Data Exchange) feature

for further reference
DSP 6713 Rulph C
dsprelated.com
 

Re: matlab wavrecord

Thanks it help me a lot
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…