Python speech recognition error - Invalid number of channels

前端 未结 2 1214
不知归路
不知归路 2020-12-21 19:19

I\'m running a speech recognition code on python as part of a project. I\'m facing a really odd kind of a problem When I put the speech recognition code inside a function l

2条回答
  •  天涯浪人
    2020-12-21 19:49

    Is access to the channel exclusive? Can only one thread hold access to the microphone? Your problem might be that you are trying to access the microphone multiple times concurrently (multiple loop calls) rather than just access it once (outside of loop).

提交回复
热议问题