简体   繁体   English

从Android应用程序向Google助手(特别是助手,而不是任何其他搜索方法)发送命令

[英]Send Google Assistant (Specifically the Assistant, not any other search method) a command from an Android app

I'm trying to send the Google Assistant a command (specifically "Good Morning") from my app when you press a button. 当您按下按钮时,我正在尝试从我的应用程序向Google助手发送命令(特别是“早安”)。 I found this thread that asks a similar question, but the "Correct Answer" does not work. 我发现此线程询问类似的问题,但是“正确答案”不起作用。 The answer provided opens up a Google Search, but NOT the Assistant. 提供的答案会打开一个Google搜索,但不会打开助手。 This means that when I send it "Good Morning" it simply Google searches "Good Morning" instead of playing my daily briefing (which is my intended goal). 这意味着,当我将其发送为“早安”时,它只是Google搜索“早安”,而不是播放我的每日简报(这是我的预期目标)。 The intent in the question ( Intent.ACTION_VOICE_COMMAND ) opens the Assistant. 问题中的意图( Intent.ACTION_VOICE_COMMAND )将打开助手。 However, what extra do I have to set to send it a command? 但是,我还必须设置其他什么来发送命令? intent.putExtra("query", "Good Morning"); does not work. 不起作用。

Currently there is NO way to pass a command to your Voice Assistant. 当前无法将命令传递给语音助手。 There is no input for long presses or voice commands , which are the two intents I would have used to complete this task. 长按语音命令 没有输入 ,这是我用来完成此任务的两个意图。 Whether this because of a security reason or because the Assistant is still new, is unknown. 究竟是出于安全原因还是由于助手仍然是新的,这些都是未知的。 However, what is known is that this functionality currently does not exist. 但是,已知该功能目前不存在。

暂无
暂无

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

相关问题 如何从 Android 向 Google Assistant 发送命令 - how to send command to Google Assistant from Android 如何从Android应用程序向Google Assistant发送文本查询 - How to send a text query to Google Assistant from Android app 通过语音命令(例如Google助手)启动android应用 - Lanch android app from voice command like google assistant 使用 Android 应用程序运行 Google Assistant 命令 - Run Google Assistant Command with an Android App 从Android应用程序向Google Assistant发送命令 - Sending commands to Google Assistant from Android app 谷歌助理如何直接从谷歌助理应用程序发送个人 whatsapp 消息? 是 Google Assistant 为 whatsapp 制作了 UI? - How does google assistant send personal whatsapp messages directly from Google Assistant app? Is it Google Assistant who made the UI for whatsapp? 从我的应用程序向 Google 助理发送语音或文本命令(Hey Google) - Send Voice or Text Command From My App To Google Assistant (Hey Google) 在谷歌助手中添加一个命令以在您的 android 应用程序中触发 function - Add a command in google assistant to trigger a function in your android app 如何从 android 手机谷歌助手控制 Android 应用程序操作 - How to control Android app action from android phone google assistant 当 Android 应用程序不存在时,来自 Google 助手中的操作的 DeepLink 链接? - DeepLink link from Action in Google Assistant when Android app is not present?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM