Google assistant SDK custom commands

时光毁灭记忆、已成空白 提交于 2020-01-25 21:45:09

问题


Currently following hot word example, I create custom commands like turn screen on/off, how do I disable voice response "sorry I can't help you"


回答1:


there are multiple ways do it.follow this link and details google assistant

1 - if your using this method/project creation and run it. then you can parse the request/query in event.args['text'] based on which you can perform activity local without sending it to google assistant. problems: google will response with some voice message parallel.

2 - use IFTTT, pretty simple to work with. basic use with webhooks takes little time though. this link is useful and use ngrok for local webhook url

3 - use API.AI this is for advanced projects where you depend on google to assist with questions recognization and response with your answers from webhooks. it's not straight forward to work with, the details and tutorials that are given are with google cloud functions which works only with node.js as of now. if your python programmer or any other languages google has examples in github which are again not stright forward, I guess.



来源:https://stackoverflow.com/questions/44397290/google-assistant-sdk-custom-commands

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!