We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4f2516 commit 7af46a3Copy full SHA for 7af46a3
Code-Sleep-Python/speech-to-text/stt.py
@@ -1,12 +1,11 @@
1
-#import string
2
import speech_recognition as sr
3
4
r = sr.Recognizer()
5
6
with sr.Microphone() as source:
7
print("Say something... ")
8
audio = r.listen(source)
9
-
+
10
try:
11
print("Google thinks you said: {}".format(r.recognize_google(audio)))
12
except sr.UnkownValueError:
0 commit comments