Tried TTS with Larynx

This commit is contained in:
Mathieu B 2021-08-01 09:58:09 +02:00
parent b8a17164f8
commit 1f248d74c4

View File

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