This repository has been archived on 2023-06-09. You can view files and clone it, but cannot push or open issues or pull requests.
jarvis-server/jarvis/utils/client_utils.py

16 lines
509 B
Python
Raw Normal View History

2021-08-01 09:58:09 +02:00
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")