Заменил festival на RHVoice
This commit is contained in:
parent
e76def30b5
commit
24a2f6f4ab
|
@ -7,7 +7,8 @@ def speak(text:str):
|
|||
"""Функция выполняет вызов приложения festival"""
|
||||
if (len(text) > 0):
|
||||
#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()
|
||||
#time.sleep(5)
|
||||
|
Loading…
Reference in New Issue