Click here to Skip to main content
15,887,415 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want help with Fast Fourier Transform  that shows the difference between the two audio .wav and dusplay the diffrent between it in percentage%
such as diffrent between speech in .wav in c# or in vb.net

What I have tried:

i dont know how to implement it
Posted
Updated 4-May-17 23:10pm
Comments
Ralf Meier 5-May-17 3:08am    
I don't know how to give an answer to a question with such less Information ...
Perhaps you describe a little more what you have done and how you have done it.
Also it would be interesting what result you aim ...
The FFT divides a Signal into it's frequency-parts - are you sure that you want this ?

1 solution

Your question is rather vague.

But it seems that you have to:

Perform FFT on both audio files
Searching the net should provide you with example code and libraries for various programming languages and how to apply FFTs to WAV files.

Scale the results
Because you want the percentage ratio you have to scale both FFTs to the same level.

Caluclate the percentage ratio for each frequency
The simplest part:
ratio[freq] = 100 * scaled_fft1[freq] / scaled_fft2[freq]

Display the result
A simpley x-y diagram where x is the frequency and y is the above calculated ratio.
 
Share this answer
 
Comments
giant18 7-May-17 10:56am    
can you help me find for me one simple code to do that even in c# or vb.net or python please
Jochen Arndt 8-May-17 3:21am    
That would require to know what you exactly want to do.
There will be usually also no ready to use solution.
While you will probably find code for FFT and to read WAV files, you have to put that together to match your requirements.

For FFT libraries have for example a look at Comparison of FFT implementations for .NET

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900