Skip to content
Snippets Groups Projects
Commit 498a4d9a authored by Antonio Andriella's avatar Antonio Andriella
Browse files

main fix for reproducing action

parent 2342aa37
No related branches found
No related tags found
No related merge requests found
...@@ -62,11 +62,17 @@ class Speech(): ...@@ -62,11 +62,17 @@ class Speech():
if __name__ == "__main__": if __name__ == "__main__":
speech = Speech("en_GB") speech = Speech("en_GB")
text = "The solution is 112" text = "The solution is 112"
speech.text_to_speech(text, False, 0) speech.text_to_speech(text, True)
t0 = time.time() print(speech.reproduction_has_ended)
elapsed_time = 0 speech.reproduction_has_ended = False
while(elapsed_time<5): print(speech.reproduction_has_ended)
elapsed_time = time.time()-t0 if speech.reproduction_has_ended == False:
print("Reproduction has ended? ",speech.reproduction_has_ended) speech.text_to_speech(text, True)
print(speech.reproduction_has_ended)
#
# t0 = time.time()
# elapsed_time = 0
# while(elapsed_time<5):
# elapsed_time = time.time()-t0
# print("Reproduction has ended? ",speech.reproduction_has_ended)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment