Заменил festival на RHVoice

This commit is contained in:
parent e76def30b5
commit 24a2f6f4ab
1 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,8 @@ def speak(text:str):
"""Функция выполняет вызов приложения festival""" """Функция выполняет вызов приложения festival"""
if (len(text) > 0): if (len(text) > 0):
#print(text) #print(text)
process = subprocess.Popen(f'echo "{text}" | festival --tts --language russian', shell=True) #process = subprocess.Popen(f'echo "{text}" | festival --tts --language russian', shell=True)
process = subprocess.Popen(f'echo "{text}" | RHVoice-test -p anna -o - 2>/dev/null | aplay - 2>/dev/null', shell=True)
process.wait() process.wait()
#time.sleep(5) #time.sleep(5)