Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Created Jul 26, 2018
Embed
What would you like to do?
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment