Files
auracast-translator/multilang_translator/text_to_speech/piper_welcome.sh

10 lines
235 B
Bash

SCRIPT_DIR=$(dirname "$(readlink -f "$BASH_SOURCE")")
START_DIR=$(pwd)
cd $SCRIPT_DIR
echo 'Welcome to the world of speech synthesis!' | piper \
--model en_US-lessac-medium \
--output_file $SCRIPT_DIR/welcome.wav \
cd $START_DIR