Print sentence before establishing opentts connection

This commit is contained in:
Mathieu 2021-09-14 15:45:06 +02:00
parent e5ec573705
commit 48c28b34c5

View File

@ -5,12 +5,13 @@ from jarvis.utils import config_utils
def speak(sentence, client_ip, client_port): def speak(sentence, client_ip, client_port):
# TODO: remove when fixed opentts server
print(sentence)
raw_audio_bytes = get_audio_from_sentence(sentence) raw_audio_bytes = get_audio_from_sentence(sentence)
if raw_audio_bytes is None: if raw_audio_bytes is None:
return "Error, audio not valid!" return "Error, audio not valid!"
# TODO: remove when fixed opentts server
print(sentence)
play_audio_on_client(raw_audio_bytes, client_ip, client_port) play_audio_on_client(raw_audio_bytes, client_ip, client_port)