SoundGen - text to sound generator
SoundGen is not actually a Lua script - it's a PowerShell script which runs on a Windows PC.
SoundGen converts your custom text into .wav files which can be played in EdgeTX and OpenTX. The files are 16-bit with sampling rate of 16000 Hz.
Interactive or batch versions
There are two versions of the script
- SoundGenInteractive: This version is ideal for ad-hoc generation of sound files. A phrase is typed in at a command prompt and the script generates a file with the phrase as filename.
There is an option to strip leading and trailing silences to 0.01 s - to use this option you will need to install FFmpeg. - SoundGenBatch: This version will process a batch of phrases in a single run. The list of phrases and filenames is supplied via a comma separated file. The script generates the sound files with silences stripped. FFmpeg must be installed with this version.
Right click and save the file as text, then follow the intructions at the head of each file.
Example outout .wav files
Click on link to play
- "Don't forget to move the sticks!"
- "Warning... close flaps"
- "Close throttle"
- "Ting a ling a ling"
- "Beep beep beep"
Screenshots
Interactive version
Example phrase is 'don't forget to move the sticks'.
Comparison of trimmed and untrimmed silences
Upper: base file, untrimmed (play)
Lower: with silences trimmed (play)