0

Every time I run the code it just pauses on 'Listening...' and I have no clue why. Any idea why it does this?

import speech_recognition as sr

r = sr.Recognizer()

with sr.Microphone() as source:
    print('Listening...')
    audio = r.listen(source)

try:
    text = r.recognize_google(audio)
    print('You said : {}'.format(text) )
except:
    print('Sorry i did not catch that')
desertnaut
  • 57,590
  • 26
  • 140
  • 166
iSavageSkull
  • 13
  • 1
  • 1
  • 6

0 Answers0