Analysis number from dtmf sound

10 Ansichten (letzte 30 Tage)
rafi
rafi am 17 Sep. 2014
Kommentiert: Star Strider am 6 Okt. 2014
hello, i have a wav file, which use dtmf i do spectrogram on the file and i receive 10 amplitude peak how can i return the 2 frequency of each peak (high and low frequency)
  2 Kommentare
Stephen23
Stephen23 am 17 Sep. 2014
Bearbeitet: Stephen23 am 17 Sep. 2014
MATLAB provides this DTMF example , and you can also find some DTMF submissions on FEX.
rafi
rafi am 17 Sep. 2014
i understand this, but i don't know how to extract the frequency peak amplitude

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Star Strider
Star Strider am 17 Sep. 2014
You did not post your data so I cannot be specific. You can get the frequency and time output as vectors from spectrogram:
  • [S,F,T] = spectrogram(...) returns a vector of frequencies, F , and a vector of times, T , at which the spectrogram is computed. F has length equal to the number of rows of S . T has length k (defined above) and the values in T correspond to the center of each segment.
There is probably no neat and efficient way to do what you want. I would loop through S at each time, sort and threshold the amplitudes to find the indices of the values >-35dB or so, then use the indices returned by sort to determine the frequencies. (Using the find function is also a possibility, but I am not certain it would make this more efficient.)
  9 Kommentare
rafi
rafi am 6 Okt. 2014
hi again, i need a liitle help: 1. the function spctrogram is IIR or FIR fillter? 2.i try to learn from the help about spectrogram, but who can explain me better than help?
Star Strider
Star Strider am 6 Okt. 2014
To the best of my knowledge, there are no filters at all involved in spectrogram. It uses a fft with windowing.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

rafi
rafi am 17 Sep. 2014
hello Star Strider,
i attach my audio+ code that i write
i don't understand from your answer how can i find threshold amplitudes because vector S contain fft, no amplitudes

Community Treasure Hunt

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

Start Hunting!

Translated by