diff --git a/speaker.py b/speaker.py index e9a6c7f..4102098 100644 --- a/speaker.py +++ b/speaker.py @@ -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) \ No newline at end of file