简体   繁体   English

Android 助手应用程序操作 - 打开“app_name”命令在其他语言中不起作用。 仅适用于英语

[英]Android assistant app action - Open "app_name" command does not work in other languages. Only works in English

I have been trying to integrate my application with google assistant.我一直在尝试将我的应用程序与谷歌助手集成。 I was able to make it work in English language with following sample code -我能够使用以下示例代码使其以英语工作 -
https://github.com/actions-on-google/appactions-fitness-kotlin https://github.com/actions-on-google/appactions-fitness-kotlin
However I couldn't find anything for Japanese language.但是我找不到日语的任何东西。 And by reading native intents document I found that it only support few locale.通过阅读本机意图文档,我发现它只支持少数语言环境。
But few apps like Spotify and Netflix can be opened using Japanese command like -但是很少有像 Spotify 和 Netflix 这样的应用程序可以使用日语命令打开,比如 -
オープン Spotifyオープン Spotify

Now I have looked into App Action Builder and checked their codelab guide.现在我查看了 App Action Builder 并检查了他们的代码实验室指南。 but I couldn't find any solid example on how to implement "Open aap_name" command.但我找不到任何关于如何实现“Open aap_name”命令的可靠示例。

If Android app action can be configured for different language or not.如果 Android 应用程序操作可以配置为不同的语言或不。 If yes How?如果是如何?


Thank you 谢谢

I'll answer your first question.我会回答你的第一个问题。 The second one asking for a guide is off topic for Stack Overflow and could get your question removed from the site (I suggest you edit it out).第二个要求指南的问题与 Stack Overflow 无关,可能会将您的问题从网站上删除(我建议您将其编辑掉)。

Each App Actions BII supports a limited set of languages.每个 App Actions BII 都支持一组有限的语言。 You can find out what is supported by consulting the documentation for that BII.您可以通过查阅该 BII 的文档了解支持的内容。 If you're asking about the "open app feature" BII, the documentation states that only these languages are supported: en-US, en-GB, en-CA, en-IN, en-BE, en-SG, en-AU, es-ES, pt-BR如果您询问“打开应用程序功能”BII, 文档说明仅支持以下语言:en-US、en-GB、en-CA、en-IN、en-BE、en-SG、en- AU, es-ES, pt-BR

The behavior you're seeing for other apps opening with a voice command might not have anything to do with App Actions.您看到的其他使用语音命令打开的应用程序的行为可能与应用程序操作无关。 Assistant might just already recognize the name of the app as part of its own internal configuration. Assistant 可能已经将应用程序的名称识别为其内部配置的一部分。

If are working with App Actions and you find that it doesn't recognize the name of your app after you've performed a full integration, you should reach out to Assistant support to explain that you need Assistant to recognize the name.如果您正在使用 App Actions,并且在您执行完全集成后发现它无法识别您的应用名称,您应该联系 Google助理支持人员,说明您需要 Google 助理来识别该名称。

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

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