Форум сайта python.su
import pyttsx3 import speech_recognition as sr import pyaudio r = sr.Recognizer() with sr.Microphone(device_index=5) as source: print("скажите что нибудь") audio = r.listen(source) quere = r.recognize_google(audio, language="ru-RU") Exception has occurred: UnknownValueError File "C:\Users\1\xd\Untitled-1.py", line 8, in <module> quere = r.recognize_google(audio, language="ru-RU") print( quere.lower())
Отредактировано FishHook (Май 18, 2020 14:53:41)
Офлайн