From 24a2f6f4ab2d328c53b7175645a80dbfa8b4a115 Mon Sep 17 00:00:00 2001 From: "re.kovalev" Date: Mon, 16 May 2022 15:03:49 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB=20fe?= =?UTF-8?q?stival=20=D0=BD=D0=B0=20RHVoice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- speaker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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