首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何修改google助手like to to,像hotword一样

如何修改google助手like to to,像hotword一样
EN

Stack Overflow用户
提问于 2020-05-14 14:37:10
回答 1查看 240关注 0票数 0

我目前正在做学校项目,我的目标是每当我说‘pi’(机器名)‘为我唱歌’(google= assistant)时,因为如果我使用hotword会很容易,但它目前不可用,也不支持我们的语言

在env/lib/googleassistant/--/ line totalk.py 457行

wait_for_user_trigger =不止一次

代码语言:javascript
复制
    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?

EN

回答 1

Stack Overflow用户

发布于 2020-05-19 23:30:03

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61790842

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档