Created
July 26, 2018 19:09
-
-
Save NMZivkovic/710562514f1169fdec5ae47af0c78fb7 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() | |
sr.Microphone.list_microphone_names() | |
mic = sr.Microphone(device_index=1) | |
with mic as source: | |
recognizer.adjust_for_ambient_noise(source) | |
audio = recognizer.listen(source) | |
recognizer.recognize_google(audio, language='sr-SP') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment