简体   繁体   English

为谷歌助手执行命令 - Node js

[英]Execute commands for the google assistant - Node js

I am looking forward to a node package that allows you to run commands to get the same output we get in the google assistant on our android phones.我期待着一个节点包,它允许您运行命令以获得与我们在 Android 手机上的谷歌助手中获得的输出相同的输出。 The command which we say after saying 'Ok Google' or 'Hey Google' to execute to give the same output.我们在说“Ok Google”或“Hey Google”后说的命令要执行以提供相同的输出。 Any suggestions?有什么建议? Thank you!谢谢!

Here is a popular NPM package:这是一个流行的 NPM 包:

"The Google Assistant SDK - A version in node to play around with! I've abstracted it from needing to use the mic and speakers on the device running the code (but it still can!) so that you can pass audio in and play audio back however you want to." “Google 智能助理 SDK - 节点中可以玩的版本!我已经将它从需要使用运行代码的设备上的麦克风和扬声器中抽象出来(但它仍然可以!),以便您可以传入音频并播放不管你想怎么回音频。”

https://www.npmjs.com/package/google-assistant https://www.npmjs.com/package/google-assistant

Here is the client library from Google:这是来自 Google 的客户端库:

"The Actions on Google Node.js client library is the recommended way for accessing and interacting with the Actions on Google platform if you are creating a fulfillment webhook in JavaScript. “如果您要在 JavaScript 中创建实现 webhook,Google Node.js 客户端库上的 Actions 是访问 Google 平台上的 Actions 并与之交互的推荐方式。

https://github.com/actions-on-google/actions-on-google-nodejs https://github.com/actions-on-google/actions-on-google-nodejs

and its corresponding documentation:及其相应的文档:

https://developers.google.com/assistant/actions/reference/nodejsv2/overview https://developers.google.com/assistant/actions/reference/nodejsv2/overview

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM