forked fromimaoca/RTTY
- Notifications
You must be signed in to change notification settings - Fork0
ny-a/RTTY
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a Python program to demodulate the radio teletype known as FSK modulation.This is the simplest example, and only the Terminal Unit part of the RTTY is implemented. The rest should be coded according to ITA2, for example.
This ogg file should be converted to wave format.https://en.wikipedia.org/wiki/File:RTTY.oggit is from wikipedia
Installffmpeg and run:
ffmpeg -i RTTY.ogg -ar 8k -c:a pcm_u8 -f wav rtty3s.wav
Some parameters in the source code need to be modified according to the audio file to be input.
fname='rtty3s.wav' # should be specify the filename.smp= 8000 # Sampling RateFQm= smp/914.0 # Mark Frequency 914HzFQs= smp/1086.0 # Space Frequency 1086Hz
- fnameshould be specify the filename.
- smpSampling Rate.
- FQmsmp / Mark Frequency
- FQssmp / Space Frequency
To find MARK & SPACE frequences, You can use any spectrum analyze tools on your PC. For example I use Sazanami Version 1.7.3 2020/10/22.
Please specify an appropriate audio file for the input.This program assumes 8KHz sampling, mono, 8bit quantization, and no sign.
python -m src.main