PyAudio prints ALSA warnings and does not work

前端 未结 2 1275
醉梦人生
醉梦人生 2021-01-07 02:05

hey guys i\'m trying to run a basic python speech to text code. This is the code.

import speech_recognition as sr
r = sr.Recognizer()
with sr.Microphone() as         


        
2条回答
  •  清歌不尽
    2021-01-07 02:59

    if someone is still looking for getting rid of

    ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
    

    I just commented out all pcm.surround* lines in "PCM interface" section in

    /usr/share/alsa/alsa.conf
    

    file and it works fine for me.

提交回复
热议问题