DTMF decoder printing digits from .wav file, help please
显示 更早的评论
Hello everyone,
I uploaded a zip file with a .mat file, .wav file and the code inside of it, it has to decode a DTMF sound and print the digits that was pressed in the audio file, I already have pre recorded audio files and i need to decode them, I took this code from other question here and it works with the .mat file attached there, but it doesn't work for my pre recorded audio files. It works with phonecall.mat, but doesn't work with dtmf_TESTI_101.wav, can anyone help me and tell what is the problem? It gives this error:
Unable to perform assignment because the size of the left side is 2-by-1 and the size of the right side is 4-by-1.
Error in matlab_code (line 18)
[~,freq_pos(:,k1)] = min(freq_dist,[],2); % Frequency Positions Of ‘FrqTime’ In ‘original_f’
P.S. to read .wav file i changed the first line of the code to this: [x,fs] = audioread('dtmf_TESTI_101.wav');
1 个评论
Amrtanshu Raj
2021-4-19
Hi,
Can you share the code you used ?
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 DTMF 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!