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():
if __name__ == "__main__":
speech = Speech("en_GB")
text = "The solution is 112"
speech.text_to_speech(text, False, 0)
t0 = time.time()
elapsed_time = 0
while(elapsed_time<5):
elapsed_time = time.time()-t0
print("Reproduction has ended? ",speech.reproduction_has_ended)
speech.text_to_speech(text, True)
print(speech.reproduction_has_ended)
speech.reproduction_has_ended = False
print(speech.reproduction_has_ended)
if speech.reproduction_has_ended == False:
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