How do i control when to stop the audio input?

后端 未结 2 2003
南方客
南方客 2021-01-28 15:22

I am using the SpeechRecognition Python package to get the audio from the user.

import speech_recognition as sr
# obtain audio from the microphone
r = sr.Recogn         


        
2条回答
  •  -上瘾入骨i
    2021-01-28 15:52

    I think you need to read the library specifications; then, you can check that using record method instead of listen method is preferable to your application.

提交回复
热议问题