继续谷歌搜索更新后,语音识别提示音提示音、语音识别、继续

2023-09-06 03:10:51 作者:甜味少女馆.

我有一个应用程序,不断聆听语音并将其转换为使用谷歌语音的API命令。

I have an app that keeps on listening to voice and converting it to commands using Google Voice API.

我一直在使用 setStreamMute(AudioManager.STREAM_SYSTEM,真)静音蜂鸣和它的工作,直到前谷歌搜索的新更新之前几天。 请问有什么解决办法修复了么?

I have been using setStreamMute(AudioManager.STREAM_SYSTEM, true) to mute the beep and it worked until a couple of days ago before "Google Search" new update. Is there any workaround fix for it?

我知道我可以使用 setRingerMode(AudioManager.RINGER_MODE_SILENT),但也许有另一种方法?

I know I can use setRingerMode(AudioManager.RINGER_MODE_SILENT), but maybe there is another method?

推荐答案

在更新他们交换了嘟嘟的输出,以媒体流。

In the update they switched the output of the 'beep' to the media stream.

所以,你需要静音 AudioManager.STREAM_MUSIC

有一个增强请求一下这里