简体   繁体   English

如何通过CLI(命令行界面)使用Google Assistant SDK + Dialogflow?

[英]How can i use Google Assistant SDK + Dialogflow by CLI(Command Line Interface)?

I want to make a small AI speaker. 我想做一个小的AI扬声器。

It looks like Google Home, Apple Homepod. 看起来像Google Home,Apple Homepod。

I installed the Google Assist SDK on my Ubuntu 16.04. 我在Ubuntu 16.04上安装了Google Assist SDK。 I can register an action through gactions. 我可以通过gactions注册一个动作。

$ pushtotalk.py --device-model-id ~ I can use the Google assistant like this. $ pushtotalk.py --device-model-id〜我可以这样使用Google助手。

But the dialogue flow is only on the simulator in the actions on google web page. 但是对话流仅在Google网页上的操作程序中的模拟器上。 Can I use it like pushtotalk.py and can I use intents in the dialogue flow? 我可以像pushtotalk.py一样使用它吗?我可以在对话流程中使用意图吗?

The Google Assistant SDK is just like using the Google Assistant. Google Assistant SDK就像使用Google Assistant一样。 If you want, you can invoke and communicate with Dialogflow apps just like on a phone. 如果需要,您可以像在电话上一样调用Dialogflow应用并与之通信。

pushtotalk.py ... "Talk to my app"

pushtotalk.py ... "Hello"

That will go on as you want. 这将继续按照您的意愿进行。 You can also access 3P actions like Number Genie. 您还可以访问3P动作,例如Number Genie。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 蟒蛇| 如何测试人类的命令行界面 (CLI) - Python | How to test for human for a Command Line Interface (CLI) Python:您可以将音频文件作为用户输入命令直接传递给 Google Assistant SDK 吗? - Python: Can you directly pass an audio file as user input command to Google Assistant SDK? 如何在MacOSX上安装Google Assistant SDK - How to install Google Assistant SDK on MacOSX Google Assistant SDK - Google Assistant SDK 如何使LED指示灯在Google Assistant收听时点亮? - How can I get an LED to light on Google Assistant listening? 我如何在python脚本中使用speedtest-cli或任何替代方法而不是命令行? - How do i use speedtest-cli or any alternative in python script instead of command line? 如何获得ON_RECOGNIZING_SPEECH_FINISHED上的值:{'text':'您在做什么Google'} Google Assistant SDK Ubilinux UP2开发板 - how can i get the value on ON_RECOGNIZING_SPEECH_FINISHED: {'text': 'what you doing Google'} Google Assistant SDK Ubilinux UP2 Board 无法在Google Assistant SDK上触发自定义操作 - Can't trigger custom actions on google assistant sdk 如何从命令行使用qsub和Python? - How can I use qsub with Python from the command line? 如何从命令行使用JSBeautify? - How can I use JSBeautify from the command line?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM