Tried TTS with Larynx
This commit is contained in:
parent
b8a17164f8
commit
1f248d74c4
@ -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")
|
Reference in New Issue
Block a user