Created
August 25, 2018 13:09
-
-
Save tsu-nera/1dfb25a56098f28c79b567a44a0bc59b to your computer and use it in GitHub Desktop.
音声認識スクリプト
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 | |
r = sr.Recognizer() | |
mic = sr.Microphone() | |
with mic as source: | |
r.adjust_for_ambient_noise(source) | |
audio = r.listen(source) | |
print(r.recognize_google(audio, language='ja-JP')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment