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")