aboutsummaryrefslogtreecommitdiffstats
path: root/src/tts/download_voices_tts-1.sh
diff options
context:
space:
mode:
authorben2025-01-12 14:37:13 +0100
committerben2025-01-12 14:37:13 +0100
commit778188ed95ccf50d2e21938bf5b542d76e066f63 (patch)
treee5138e638da98036e03cb11b2b0cf48fe4c590b2 /src/tts/download_voices_tts-1.sh
downloadai_env-778188ed95ccf50d2e21938bf5b542d76e066f63.tar.gz
ai_env-778188ed95ccf50d2e21938bf5b542d76e066f63.tar.bz2
ai_env-778188ed95ccf50d2e21938bf5b542d76e066f63.tar.xz
Initial commit, first public version.
Diffstat (limited to 'src/tts/download_voices_tts-1.sh')
-rw-r--r--src/tts/download_voices_tts-1.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tts/download_voices_tts-1.sh b/src/tts/download_voices_tts-1.sh
new file mode 100644
index 0000000..f880650
--- /dev/null
+++ b/src/tts/download_voices_tts-1.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+# cat voice_to_speaker.default.yaml | yq '.tts-1 ' | grep mode | cut -d'/' -f2 | cut -d'.' -f1 | sort -u | xargs
+models=${*:-"en_GB-alba-medium en_GB-northern_english_male-medium en_US-bryce-medium en_US-john-medium en_US-libritts_r-medium en_US-ryan-high fr_FR-siwis-medium fr_FR-tom-medium fr_FR-upmc-medium"}
+piper --update-voices --data-dir voices --download-dir voices --model x 2> /dev/null
+for i in $models ; do
+ [ ! -e "voices/$i.onnx" ] && piper --data-dir voices --download-dir voices --model $i < /dev/null > /dev/null
+done
+