Created
July 26, 2018 18:04
-
-
Save NMZivkovic/c8c2d6cead8904025aef48f8404f6b4b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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