2017-03-08 15:21:52 +11:00
|
|
|
#!/bin/bash
|
2017-03-08 17:06:29 +11:00
|
|
|
echo -n "Creating folders..."
|
2017-03-08 15:21:52 +11:00
|
|
|
mkdir -p SOUNDS/en/SYSTEM
|
2017-03-08 17:06:29 +11:00
|
|
|
echo "Done"
|
2017-03-08 15:21:52 +11:00
|
|
|
echo "Generating sounds..."
|
2017-03-08 17:06:29 +11:00
|
|
|
IFS=';'
|
|
|
|
while read location filename words
|
|
|
|
do
|
|
|
|
echo -n "Generating $location/$filename..."
|
|
|
|
say --file-format=WAVE --data-format=LEI16@32000 --channels=1 -v Daniel -o "$location/$filename" "$words"
|
|
|
|
echo "Done"
|
|
|
|
done < $1
|
|
|
|
echo "All finished!"
|