r = sr.Recognizer()
with sr.Microphone() as source:
print('Можна говорити')
r.pause_threshold = 1
r.adjust_for_ambient_noise(source, duration=1)
audio = r.listen(source)
try:
result = r.recognize_google(audio, language="uk-UA").lower()
print("Ви сказали: " + result)
except sr.UnknownValueError:
result = cmmd()
return zadanie