Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import speech_recognition as sr
- r = sr.Recognizer()
- with sr.Microphone() as source:
- print('Скажите что-нибудь...')
- audio = r.listen(source)
- query = r.recognize_google(audio, language="ru-RU")
- print('Вы сказали ' + query.lower())
Advertisement
Add Comment
Please, Sign In to add comment