启动指令检测用通俗易懂的服务被禁用
我创建了一个通俗易懂的服务,为节约每敬酒的消息,但在谷歌现在启动指令检测现在将被禁用,如果我激活服务。 logcat中显示:
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.
什么可能导致此行为?
编辑:来源$ C $ c是在GitHub上现在: https://github.com/mars3142/toaster
The source code is on github now: https://github.com/mars3142/toaster
要prevent误报,当启用了语音反馈服务启动指令检测功能。您已经定义了您的服务作为提供所有可能的类型的反馈,其中包括语音。
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"