Skip to content

Conversation

@tylxr59
Copy link

@tylxr59 tylxr59 commented Dec 17, 2025

First initial implementation of audio ducking via AudioFocusManager. Looking for feedback on how it is structured and functions.

This functions through AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK which will lower any background audio during the user's interaction with Dicio. Audio ducking starts in SttInputDeviceWrapper when it detects a listening state and is held until TTS finishes in AndroidTtsSpeechDevice.onDone().

I've added some fallback releases in VoskInputDevice.stopListening() (when the user taps the mic button to cancel an interaction), MainActivity.onStop() (when the user leaves the app), and when a skill errors out.

I believe this covers all cases but could definitely use some help testing this implementation.

I've merged this into my test build - https://github.com/tylxr59/dicio-android/tree/tylxrs-build

Resolves #363

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wake word recognition fails during music playback / hard to give additional commands

1 participant