[GreenKeys] RTTY engine using SOX and Perl

steve bennett raleigh_ranger at yahoo.com
Thu Aug 26 18:44:12 EDT 2021


Greenkeys,
  Thanks for answering all my questions about RTTY tones.It was a big help.Here is what I accomplished today using that information.
I'm attempting to create a command line script for linux that can convert text to RTTY or iTTY tones.I would have rather used one someone else already wrote but could not find one.Yes I know GUI programs like FLDIGI and MMTTY can create the tonesbut I wanted it to be scriptable so it can be automated.
I started by using an audio editor called GoldWave to create Mark ,Space and Stop tones of the correct pitchand duration.mark.wav space.wav and stop.wav(this step could have been done with sox)
With those basic building blocks I wrote a CSH script that uses SOX to concatenate the tones into BAUDOT tones.
sox space.wav mark.wav mark.wav space.wav space.wav space.wav stop.wav a.wav(the first space is a start bit)
This creates a.wav with start and stop bits.Repeat for all the other characters.
Now I have a.wav, b.wav, c.wav........z.wav....etc
Finally I wrote a perl script that used these wav files to convert input text to baudotout wav
cat quickBrownFox.txt | txt2fsk.pl Presto! It creates baudotout.wav ready for RTTY or iTTY. consumption
Here is a link if anyone cares to test the result.45.45 baud, 1.5 stop bits2295 space2125 mark
Please give it a try and let me know if you can copy it. https://www.dropbox.com/s/dfpuj471rw9r20h/quick%20brown%20fox.wav?dl=0

Thanks,-Steve 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qth.net/pipermail/greenkeys/attachments/20210826/882b0cf7/attachment.html>


More information about the GreenKeys mailing list