问题
referencing to Hoans answer here Jelly Bean Beep In Speech Recognition I tried to implement a speech recognizer in the background.
And it works all fine. The service runs in background and listens to words the user say. My problem is:
If a music player is running and the speech recognizer restarts, the system sound stream is muted to prevent the beep sound of speech recognition. But muting this stream paues and mutes the music player, too.
Does anyone have an idea how to prevent the beep sound without muting the whole system?
I already tried to mute another stream but the system stream is the only one muting the beep.
I test on a Nexus 4 with Android 4.4
Best regards.
来源:https://stackoverflow.com/questions/20495397/android-speech-recognition-while-music-is-playing