【发布时间】:2022-01-02 12:55:52
【问题描述】:
嘿,我需要帮助,这是我在这里的第一篇文章,所以我不知道该怎么做,但我想知道如何解决我的问题,我是编码新手
def get_audio():
with sr.Microphone() as source:
audio = listener.listen(source)
said =''
try:
said = r.recognize_google(audio)
print(said)
except Exception as e:
print('Exception' + str(e))
Wake = 'hey friday'
while True:
text = get_audio()
if text.count(Wake) < 0:
talk('I am ready sir')
【问题讨论】:
标签: python python-3.x pycharm