Solved

filter a sound file

Posted on 2009-04-08
5
1,294 Views
Last Modified: 2013-11-25
hi,
can anyone help me with the sound file i have to filter it so that i can clear it and hear that word on it. this is has to be done on MATLAB programming software, and i have the file attached bellow for you....
 please not that i have gave the file an extention (.doc), but you have to change it back to (.wav) when you receive it, and when you send it back you have to send it be different extention againg, otherwize it would not be allowed to upload on you website...
anyway, can you please send me the explenation how it flitered please, (if sorted)

thank you
0
Comment
Question by:ferman-k
5 Comments
 
LVL 15

Expert Comment

by:yuk99
ID: 24099112
No file attached, please upload.
0
 

Author Comment

by:ferman-k
ID: 24102951
i thought i have attached the file, anyway, i am sorry here is the file, but again, please note that i have changed the extention of the file  to .doc   in order to be send, so when you receive it please change the extention back to .wav
deng.doc
0
 
LVL 5

Expert Comment

by:LukeyJay
ID: 24106958
Hello, there.  This sounds like a homework assignment, am I right?  If that is the case, we can't do the work for you.  But here's some code to get you started.  You can experiment with various filter types and sizes.  If you don't understand some of the functions, just look them up in the help files.

Luke
alo = [1 1 0 0];

ahi = [0 0 1 1];

f = [0 0.05 0.1 1];

n = 50;

h = firpm(n,f,alo);

[x,Fs,Nbits,Opts] = wavread('deng.wav');

y = filter(h,1,x);

soundsc(y,Fs)

Open in new window

0
 
LVL 9

Accepted Solution

by:
masheik earned 500 total points
ID: 24109094
--can anyone help me with the sound file i have to filter it so that i can clear it and hear that word--
read the file using wavread and plot fft of the file  see frequency content and  what should be removed?

you can find examples here
http://www.electronics.dit.ie/staff/ptobin/lab015.pdf


About filtering and reading wav files this link can help you

read and try your own,
http://www.aquaphoenix.com/lecture/matlab10/page4.html
an example filter implementation
http://ccrma-www.stanford.edu/~jos/fp/Matlab_Filter_Implementation.html
0
 
LVL 5

Expert Comment

by:LukeyJay
ID: 24110081
For the frequency content, try using the pwelch command.  It gives you the power spectral density.  The basic command is

pwelch(x)

you can also add other inputs to the function for things like sampling frequency and such.

Luke
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
has77  challenge 9 71
haveThree challenge 22 112
ShiftLeft challenge 21 76
Support for Notepad++ (including downloading & installing a plugin) 5 61
Navigation is an important part of web design from a usability perspective. But it is often a pain when it comes to a developer’s perspective. By navigation, it often means menuing. This is less theory and more practical of how to get a specific gro…
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.
This video teaches viewers about errors in exception handling.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now