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!