if text ever reaches the condition where it is equal to "",
your code will loop forever between lines 44 - 46, never going back to line 42.
if you add a break statement after line 46, flow will go back to line 42 and continue outer loop,
it will then exit the first loop because text will = "", the process will then terminate.
your code will loop forever between lines 44 - 46, never going back to line 42.
if you add a break statement after line 46, flow will go back to line 42 and continue outer loop,
it will then exit the first loop because text will = "", the process will then terminate.
while "how are you" in text: speak("I am fine ") while True: if "" in text: get_audio() breakThis code seems convoluted. I'm on the way out the door, but if no one else does so before I get back, I'll take a closer look.