如何像热词一样修改Google Assistant pushtotalk

问题描述 投票:0回答:1

我目前正在从事学校项目,目标是每当我说'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

python-3.6 raspberry-pi3 gpio google-assistant-sdk snowboy
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.