kevinmcaleer / PythonAI

75 stars 31 forks source link

listening loop work once than hangs #1

Closed drascom closed 2 years ago

drascom commented 2 years ago

hi kevin, thank you for this script and the video. i run your code. it is listening and taking command like weather or manipulating list for once than it printing listening but not listening acctually. when i stop execution it kills 1 thread than start listening again for a moment than killing script completely. i thing some thread is still working after executing comand and listening loop never run again. can ou check that issue pls.

drascom commented 2 years ago

i found an error now : phrase = self.r.recognize_google(audio, language="tr-TR") UnboundLocalError: local variable 'audio' referenced before assignment