speech recognition python code not working

后端 未结 13 1756
傲寒
傲寒 2020-12-15 10:23

I am running the following code in Python 2.7 with pyAudio installed.

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


        
13条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-15 11:21

    Please set minimum threshold.

    After running commend python -m speech_recognition. Set minimum energy threshold which it display.

    Setting procedure: press Ctrl then click mouse Recognizer(). Now set energy threshold.

提交回复
热议问题