Print sentence before establishing opentts connection
This commit is contained in:
parent
e5ec573705
commit
48c28b34c5
@ -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)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user