Android Speech Recognition while music is playing

2k views Asked by At

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.

0

There are 0 answers