Add piper hello world example with resample to 24kHz

This commit is contained in:
2024-12-14 21:56:20 +01:00
parent 74c2b8a34d
commit d43c3a3a38
6 changed files with 6390 additions and 7 deletions

View File

@@ -1,6 +1,13 @@
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 \
--download-dir $SCRIPT_DIR/models
#--download-dir $SCRIPT_DIR/models \
#--data-dir $SCRIPT_DIR/models
cd $START_DIR