From 49a98d98238633c375e916e62398f330ac27e7b4 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Wed, 13 Dec 2023 14:54:38 +0800 Subject: [PATCH] add a new glados model --- scripts/apk/generate-tts-apk-script.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/apk/generate-tts-apk-script.py b/scripts/apk/generate-tts-apk-script.py index c55b9bcd5..b32836c3e 100755 --- a/scripts/apk/generate-tts-apk-script.py +++ b/scripts/apk/generate-tts-apk-script.py @@ -97,6 +97,7 @@ def get_piper_models() -> List[TtsModel]: TtsModel(model_dir="vits-piper-en_US-ryan-high"), TtsModel(model_dir="vits-piper-en_US-ryan-low"), TtsModel(model_dir="vits-piper-en_US-ryan-medium"), + TtsModel(model_dir="vits-piper-es-glados-medium"), TtsModel(model_dir="vits-piper-es_ES-carlfm-x_low"), TtsModel(model_dir="vits-piper-es_ES-davefx-medium"), TtsModel(model_dir="vits-piper-es_ES-mls_10246-low"), @@ -159,7 +160,7 @@ def get_piper_models() -> List[TtsModel]: for m in models: m.data_dir = m.model_dir + "/" + "espeak-ng-data" m.model_name = m.model_dir[len("vits-piper-") :] + ".onnx" - m.lang = "en" + m.lang = m.model_dir.split("-")[2][:2] return models