NightscoutFoundation / xDrip

Nightscout version of xDrip+
https://jamorham.github.io/#xdrip-plus
GNU General Public License v3.0
1.38k stars 1.14k forks source link

AudioFocus with Speak Readings #2136

Open sirlandos opened 2 years ago

sirlandos commented 2 years ago

Link to the discussion thread: https://github.com/NightscoutFoundation/xDrip/discussions/2135

This is a request to enable AudioFocus so readings can be heard while music is also playing.

When "Speak Readings" is enabled and music is playing, readings cannot be heard over the music. I've noticed another app (Strava) will reduce the music volume when speaking notifications. This may be implemented by an AudioFocusRequest similar to here: https://stackoverflow.com/questions/3043595/fade-in-and-out-music-while-speaking-a-text

jamorham commented 2 years ago

Yes this is possible

sirlandos commented 2 years ago

Thanks. FYI, this "Speak Readings" is great. I would not be able to go on the long runs I do without it. Getting my sugar readings every 5 minutes keeps me from crashing all the time.