Morse Code Decoding from its spectrum
19 次查看(过去 30 天)
显示 更早的评论
I have a Morse code signal separated from a bunch of other audio sources by Blind source separation. Now I have the frequency domain signal. Could someone suggest how to decode the Morse code from its spectrum or suggest some means by which I could obtain a time-domain representation of the same from which I may manually decode the Morse code?
n = 1000;
wn = [980 1020]/(fs/2);
[b,a] = fir1(n,wn,'bandpass')
% fvtool(b,a);
f = filtfilt(b,a,y);
afil = fft(f);
% subplot(4,1,1); plot(real(bfil)); title('Frequency Response of Input Signal');
% subplot(4,1,2); plot(real(afil)); title('Frequency Response of Filtered Signal');
% subplot(4,1,3); plot(y); title('Original Sound Signal');
% subplot(4,1,4); plot(f); title('Filtered Sound Signal');
1 个评论
Daniel kiracofe
2016-11-13
Would not suggest trying to decode morse code by looking at it's spectrum (i.e. a single FFT). Is it physically possible? Maybe, but it will be insanely hard. Just use the time domain signal. Note, you might have some luck using a short-time fourier transform (i.e. spectrogram or related methods), but a single fft of the whole signal is not the right approach.
"some means by which I could obtain a time-domain representation of the same"
If I understand correctly, here you are just asking how to get the time domain representation of the variable 'afil'? You already have that. it's just the variable 'f'. That's what you should focus on to decode the morse code. Or maybe I misunderstood what you are asking.
采纳的回答
Arnav Mendiratta
2016-11-17
Daniel's answer sums it up. Using Short Time Fourier Transform makes much more sense as Daniel mentioned in his answer. If you want to learn about the algorithmic implementation of this particular use-case, this link has some good information.
If you want some reference code this file exchange submission from the community is available which converts the WAV file containing the Morse code to text.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spectral Measurements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!