This commit is contained in:
jameswood 2017-03-08 15:21:26 +11:00
parent 968abcdf91
commit df0865ac44
2 changed files with 3 additions and 14 deletions

View File

@ -2,9 +2,9 @@
A Mac shell script to generate voice files for the Taranis series of RC radio control systems. A Mac shell script to generate voice files for the Taranis series of RC radio control systems.
#Instructions #Instructions
1. Download Taranis-TTV.sh and EN-Taranis-Daniel.csv 1. Download Taranis-Voicebot.sh and EN-Taranis-Daniel.csv
1. Make Taranis-TTV.sh executable with `chmod +x Taranis-TTV.sh` 1. Make Taranis-Voicebot.sh executable with `chmod +x Taranis-Voicebot.sh`
1. Customise EN-Taranis-Daniel.csv with the phrases you'd like to use. It's best to add yours at the bottom - use the same filenames as the defaults and they will overwrite the originals. 1. Customise EN-Taranis-Daniel.csv with the phrases you'd like to use. It's best to add yours at the bottom - use the same filenames as the defaults and they will overwrite the originals.
1. Run `./Taranis-TTV.sh EN-Taranis-Daniel.csv` to generate the output folders and all all the sound files. 1. Run `./Taranis-Voicebot.sh EN-Taranis-Daniel.csv` to generate the output folders and all all the sound files.
1. Copy the SOUNDS folder to your Taranis. 1. Copy the SOUNDS folder to your Taranis.
1. [This is a great tutorial on setting up Taranis sounds](https://oscarliang.com/taranis-play-sound-track-mp3-files/). 1. [This is a great tutorial on setting up Taranis sounds](https://oscarliang.com/taranis-play-sound-track-mp3-files/).

View File

@ -1,11 +0,0 @@
#!/bin/bash
echo "Creating folders..."
mkdir -p SOUNDS/en/SYSTEM
echo "Done!"
echo "Generating sounds..."
while IFS=';' read location filename words
do
say --file-format=WAVE --data-format=LEI16@32000 --channels=1 -v Daniel -o "$location/$filename" "$words"
echo "Generating $location/$filename..."
done < $1
echo "Done!"