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

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

我正在尝试在您按下按钮时从我的应用向 Google 智能助理发送命令(特别是 "Good Morning")。我发现 提出了类似的问题,但 "Correct Answer" 不起作用。提供的答案会打开 Google 搜索,但不会打开智能助理。这意味着当我发送它时 "Good Morning" 它只是 Google 搜索 "Good Morning" 而不是播放我的每日简报(这是我的预期目标)。问题中的意图 (Intent.ACTION_VOICE_COMMAND) 打开助手。但是,我还需要设置什么才能向它发送命令? intent.putExtra("query", "Good Morning"); 无效。

目前无法将命令传递给您的语音助手。有 no input for long presses or voice commands,这是我用来完成此任务的两个意图。这是出于安全原因还是因为助手仍然是新的,尚不得而知。然而,据了解目前该功能并不存在。