Jan201102 / piAssistant

MIT License
4 stars 0 forks source link

tts engine hungs up when running piAssistant #1

Closed Jan201102 closed 1 week ago

Jan201102 commented 3 months ago

Describe the bug When running piAssistant logging when tts should produce a spoken text after the output "saying: " the assistant hungs up. and doesn't produce any sound. When running the test script, an output is produced

Jan201102 commented 3 months ago

apparently it has something to do with the auditory cortex. When commenting out the initialization of the Auditory cortex in the main's __init__ it works.

Jan201102 commented 2 months ago

When commenting out the stream.open() in ear.py everything works, except you obviously can't get any audio input anymore.

Jan201102 commented 1 week ago

This issue seem to occure only when unsing the same soundcard for input and output. Since the Stream is still open, the device is blocked an can't output anything. I fixed it, by closing the stream everytime when don't need any audio input. The fix will be pushed in the next commit