简体   繁体   English

在 Android App 中捕捉 Google Assistant 的回复

[英]Catch Google Assistant's responses in Android App

How can I catch a response by Google Assistant in Android application?如何在 Android 应用程序中获取 Google 智能助理的响应? For example, I said "Ok Google", "London weather today" then I want to catch and process this answer in android app.例如,我说“Ok Google”、“伦敦今天的天气”然后我想在 android 应用程序中捕获并处理这个答案。

Maybe... Something like Broadcast Receiver.也许...像广播接收器之类的东西。

There is no API available for Android developers to capture the audio or direct transcription of what a user said. Android 开发人员无法使用 API 来捕获用户所说内容的音频或直接转录。 For a way to interact for the Google Assistant to interact with your app, you should look into App Actions although it may not fit your exact use case.对于 Google 智能助理与您的应用进行交互的交互方式,您应该查看App Actions ,尽管它可能不适合您的确切用例。

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

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