R
R
Rotyin2021-08-06 20:45:00
Python
Rotyin, 2021-08-06 20:45:00

How to set the microphone listening time?

import pyttsx3
mic = sp.Microphone(device_index = 0)
r = sp.Recognizer()
with mic as sourse:
    audio = r.listen(sourse)


if there is background noise, he does not want to cover the microphone, how to set the listening time?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question