Forked from paulohenriquesn/Type with Microphone.py
Created
January 11, 2019 19:11
-
-
Save danielAlbuquerque/5f6536eccc9125eb79eb766fdaeece25 to your computer and use it in GitHub Desktop.
Type with Microphone with Python
This file contains hidden or 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 | |
from pyautogui import press, typewrite, hotkey | |
r = sr.Recognizer() | |
with sr.Microphone() as source: | |
while True: | |
try: | |
audio = r.listen(source) | |
result = r.recognize_google(audio,language="pt-BR") | |
typewrite(result) | |
except: | |
print ("Eu nao entendi") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment