pyaudio OSError: [Errno - 9999] Unanticipated host error

前端 未结 2 1905
自闭症患者
自闭症患者 2021-01-26 01:31

I\'m trying to use the microphone of my webcam logitech to listen

with sr.Microphone(sample_rate=32000) as source:
...

This error occurs :

2条回答
  •  甜味超标
    2021-01-26 02:21

    I got this error while working with python threads.

    I was creating 2 pyaudio objects for different purposes and hadn't closed one of them later. This gave me the error:

    [Errno - 9999] Unanticipated host error

    Closing that thread fixed my issue.

提交回复
热议问题