Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import speech_recognition as sr
recognizer = sr.Recognizer()
audiofile = sr.AudioFile('welcome_to_rubiks_code_dot_net.wav')
with audiofile as source:
recognizer.adjust_for_ambient_noise(source)
audio = recognizer.record(source)
recognizer.recognize_google(audio)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment