启动指令检测用通俗易懂的服务被禁用 [英] Hotword detection disabled with accessibly service

查看:248
本文介绍了启动指令检测用通俗易懂的服务被禁用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个通俗易懂的服务,为节约每敬酒的消息,但在谷歌现在启动指令检测现在将被禁用,如果我激活服务。 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"

这篇关于启动指令检测用通俗易懂的服务被禁用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆