我目前正在从事学校项目,目标是每当我说'pi'(机器名称)'为我唱歌'(google =助手)因为如果我使用hotword会很容易,但是它目前不可用并且不支持我们的语言。
在env / lib / googleassistant /-/ pushtotalk.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)上进行此操作,如何导入需要闪烁LED的GPIO