From 48c28b34c5a0fcf70a9cd826db1b7aabe74d1573 Mon Sep 17 00:00:00 2001 From: Mathieu Date: Tue, 14 Sep 2021 15:45:06 +0200 Subject: [PATCH] Print sentence before establishing opentts connection --- jarvis/utils/client_utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jarvis/utils/client_utils.py b/jarvis/utils/client_utils.py index 7c91809..f8512b2 100644 --- a/jarvis/utils/client_utils.py +++ b/jarvis/utils/client_utils.py @@ -5,12 +5,13 @@ from jarvis.utils import config_utils def speak(sentence, client_ip, client_port): + # TODO: remove when fixed opentts server + print(sentence) + raw_audio_bytes = get_audio_from_sentence(sentence) if raw_audio_bytes is None: return "Error, audio not valid!" - # TODO: remove when fixed opentts server - print(sentence) play_audio_on_client(raw_audio_bytes, client_ip, client_port)