pilot51 / voicenotify

Android app that speaks notifications
https://voicenotify.app
Apache License 2.0
152 stars 54 forks source link

Enable Voice Notify to request audio focus when speaking #15

Closed ScottAlbertine closed 10 years ago

ScottAlbertine commented 10 years ago

Hi, I'm a huge fan of Voice Notify, it's one of the main reasons I switched from iOS to Android. However, a lot of the music I listen to is very loud, so it overpowers the spoken notifications. Because of this, I added an ability to Voice Notify to allow it to request Audio Focus from the OS. This means the OS will automatically pause/dim currently playing media while Voice Notify is speaking, and automatically resume playing when it's done. I've made this behavior an option in the preferences pane, and tested it on my own phone, it works just fine.

Thanks, -Scott-