Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
PEP8 Fix
  • Loading branch information
serafdev committed May 10, 2018
commit 7af46a3eed23a65ea36d700b32f0abb80c948a5a
3 changes: 1 addition & 2 deletions Code-Sleep-Python/speech-to-text/stt.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#import string
import speech_recognition as sr

r = sr.Recognizer()

with sr.Microphone() as source:
print("Say something... ")
audio = r.listen(source)

try:
print("Google thinks you said: {}".format(r.recognize_google(audio)))
except sr.UnkownValueError:
Expand Down