I just posted a similar question to yours - getting a slew of ALSA errors and you're running speech recognition with a mic on a USB sound card - same as I am.
Do you get the errors but the functions are working? Or does it kick out back to the command line prompt?
I found a post on StackOverflow that *may* help:
https://stackoverflow.com/questions/708 ... -each-time
It covers where these alsa errors come from.
In my case, speech recognition IS running properly, and - for now only, until I can figure out WHY I'm getting those errors, I appended 2>/dev/null to my CLI python command to suppress the errors, which worked well for now.
Hopefully something in that post might help you...
Do you get the errors but the functions are working? Or does it kick out back to the command line prompt?
I found a post on StackOverflow that *may* help:
https://stackoverflow.com/questions/708 ... -each-time
It covers where these alsa errors come from.
In my case, speech recognition IS running properly, and - for now only, until I can figure out WHY I'm getting those errors, I appended 2>/dev/null to my CLI python command to suppress the errors, which worked well for now.
Hopefully something in that post might help you...
Statistics: Posted by dave xanatos — Tue Feb 18, 2025 12:55 am