Hotword detection disabled with accessibly service

两盒软妹~` 提交于 2019-12-02 09:12:37

问题


I've created a accessibly service for saving every toast message, but now hotword detection in Google Now will be disabled, if I activate my service. Logcat shows:

W/HotwordState﹕ suspended: 11001001000000

And on Google Now you can see it with a different mic-icon.

What could cause this behavior?

Edit: The source code is on github now: https://github.com/mars3142/toaster


回答1:


To prevent false positives, hotword detection is disabled when a spoken feedback service is enabled. You have defined your service as providing all possible types of feedback, which includes spoken.

android:accessibilityFeedbackType="feedbackAllMask"

You should change this to reflect only the type of feedback your service actually provides. For example:

android:accessibilityFeedbackType="feedbackGeneric"


来源:https://stackoverflow.com/questions/22296163/hotword-detection-disabled-with-accessibly-service

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