我目前正在做学校项目,我的目标是每当我说‘pi’(机器名)‘为我唱歌’(google= assistant)时,因为如果我使用hotword会很容易,但它目前不可用,也不支持我们的语言
在env/lib/googleassistant/--/ line totalk.py 457行
wait_for_user_trigger =不止一次
while True:
if wait_for_user_trigger:
->#click.pause(info='Press Enter to send a new request...')
->time.sleep(1)
continue_conversation = assistant.assist()
# wait for user trigger if there is no follow-up turn in
# the conversation.
wait_for_user_trigger = not continue_conversation
# If we only want one conversation, break.
if once and (not continue_conversation):
break我在这里更改了(->),以便每次它处于打开状态时,但我不知道如何调用,只有当它的名称被调用时,您能帮助我吗?
你能告诉我,如果我在(env)上工作,我如何导入GPIO,我需要闪烁led?
发布于 2020-05-19 23:30:03
https://stackoverflow.com/questions/61790842
复制相似问题