Android App Actions does not work with voice command

∥☆過路亽.° 提交于 2019-12-24 01:42:30

问题


I am trying to implement app actions and slice (for fulfillment) in my android app. I am testing the feature with "App Actions Test Tool" and the slice loads up immediate when I hit "Run" in the tool but the Slice does not work with the Voice command. Is the feature available to launch slice using voice command. I already have a draft posted on play store and using the same account for Android studio and the assistant.

Expected that the slice would launch with the voice command of the intent


回答1:


Yes, it should work for most App Actions, however, you will need to test with the correct phrase. Some App Actions may also not work correctly via voice at this time, if so you can file a bug here.

To test this out:

  1. Review the test phrases under each built-in intent in the documentation here.

  2. Configure or check your invocation name in the Studio Test Tool plugin:

  3. Invoke the test phrase with your invocation name by speaking or by typing (typing can be easier for testing initially).

  4. I recommend you try first with the Fit Actions sample app along with the START and STOP exercise App Actions as these should work reliably.




回答2:


I just spent the weekend trying to get the sample to work, only to see this...

From: https://developers.google.com/actions/appactions/overview

Check the big grey box at the top of the page: "You can build and test App Actions, but user triggering from the Assistant is not available yet."

:(



来源:https://stackoverflow.com/questions/56139330/android-app-actions-does-not-work-with-voice-command

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!