From 1f248d74c41984316f2f67bf33fa770d785e74b2 Mon Sep 17 00:00:00 2001 From: Mathieu B Date: Sun, 1 Aug 2021 09:58:09 +0200 Subject: [PATCH] Tried TTS with Larynx --- jarvis/utils/client_utils.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/jarvis/utils/client_utils.py b/jarvis/utils/client_utils.py index e69de29..bbe854c 100644 --- a/jarvis/utils/client_utils.py +++ b/jarvis/utils/client_utils.py @@ -0,0 +1,15 @@ +import os + +from jarvis.utils import config_utils + + +def speak(sentence, quality=config_utils.get_in_config("LARYNX_QUALITY")): + voice = config_utils.get_in_config("LARYNX_VOICE") + denoiserstrength = config_utils.get_in_config("LARYNX_DENOISER_STRENGTH") + + os.system( + "larynx \"" + sentence + "\" --voice " + voice + " --quality " + quality + + # " --output-dir wav " + + " --interactive " + + "--denoiser-strength " + str(denoiserstrength) + + " --output-naming time")