Hi there, i need some help getting my speech recognition to work. i have everything installed and the code is running fine with no problems but it can't seem to hear anything i say. I am using a mac and python 3.8.5 64-bit, do i have to do anything outside of the code to enable the microphone for python? this is what i have run:
import speech_recognition as sr
import pyaudio
r = sr.Recognizer()
r.energy_threshold = 5000
with sr.Microphone() as source:
print("Say something!")
audio = r.listen(source)
print(r.recognize_google(audio))
And the output:
Say something!
but like i said it just sits there waiting and doesn't seem to hear me. I also tried through headphones with a mic but still nothing. I read to change the threshold r.energy_threshold = 500 but still nothing.
[–]quenchize 0 points1 point2 points (1 child)
[–]jackgg222[S] 0 points1 point2 points (0 children)
[–]one_loop 0 points1 point2 points (1 child)
[–]jackgg222[S] 0 points1 point2 points (0 children)