import speech_recognition as sr
r = sr.Recognizer()
audio = 'test.wav'
with sr.AudioFile(audio) as source:
    r.adjust_for_ambient_noise(source)
    print('Converting.....')
    audio = r.record(source)
try:
    test = r.recognize_google(audio)
    print(test)
except Exception as e:
    print(e)

1cf8c28906c4c68d12852e15ace462732d1596ff
<mask token>

<mask token>
with sr.AudioFile(audio) as source:
    r.adjust_for_ambient_noise(source)
    print('Converting.....')
    audio = r.record(source)
try:
    test = r.recognize_google(audio)
    print(test)
except Exception as e:
    print(e)

<mask token>
r = sr.Recognizer()
audio = 'test.wav'
with sr.AudioFile(audio) as source:
    r.adjust_for_ambient_noise(source)
    print('Converting.....')
    audio = r.record(source)
try:
    test = r.recognize_google(audio)
    print(test)
except Exception as e:
    print(e)

import speech_recognition as sr
r = sr.Recognizer()
audio = 'test.wav'
with sr.AudioFile(audio) as source:
    r.adjust_for_ambient_noise(source)
    print('Converting.....')
    audio = r.record(source)
try:
    test = r.recognize_google(audio)
    print(test)
except Exception as e:
    print(e)
