Matlab :detect frequency of dtmf tone (.wav )file

  • Thread starter Thread starter mohajernow
  • Start date Start date
  • Tags Tags
    Frequency Matlab
Click For Summary
SUMMARY

The discussion focuses on detecting the frequency of a DTMF tone from a .wav file using MATLAB. The user attempts to utilize the Fast Fourier Transform (FFT) and the "find" function but encounters issues with excessive results. They seek guidance on identifying the frequency corresponding to the highest magnitude in the FFT output. The provided MATLAB code snippet includes the use of wavread and fft functions, but lacks clarity on how to extract the peak frequency effectively.

PREREQUISITES
  • Understanding of MATLAB programming and syntax
  • Familiarity with Fast Fourier Transform (FFT) concepts
  • Knowledge of signal processing, specifically DTMF tone characteristics
  • Experience with audio file handling in MATLAB, particularly wavread
NEXT STEPS
  • Learn how to implement peak detection algorithms in MATLAB
  • Research the use of abs and max functions to find the highest magnitude in FFT results
  • Explore the findpeaks function in MATLAB for identifying significant frequency peaks
  • Investigate DTMF tone frequency tables to correlate detected frequencies with corresponding digits
USEFUL FOR

Audio engineers, signal processing students, and MATLAB users interested in frequency detection and analysis of DTMF tones.

mohajernow
Messages
2
Reaction score
0
a question in MATLAB ?
i have a DTMF tone as a ( .wav ) file and i want to detect
its frequency then i want to know the number which
the tone belong to

note i have a .wav file and i want to detect it


i am trying forrier then using "find function "in matlab
but the result of "find " have a lot of number
what i can do to solve this problem

here is my attempt

[y1,fs,n]=wavread('tone4.wav');
Ts=1/fs
y=fft(y1);
y=Ts*fftshift(y);
freq =find (y)
 
Last edited:
Physics news on Phys.org
i found another way to know the frequency but i do not konw how to use it
the methode depend on finding the frequency which has the highest magnitude

i do not know how to get the highest magnitude
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 15 ·
Replies
15
Views
7K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
6K
  • · Replies 2 ·
Replies
2
Views
3K