Comments (3)
That doesn't surprise me, Android considers TTS and music as different kinds of audio streams which is also why I provide that hack in audio_service to force the media buttons to show by playing a little bit of "real" audio (or what Android considers real audio. TTS doesn't count, since it's on it's own special audio stream.) Anyway, that's not exactly the same issue here, TalkBack could have been programmed to request audio focus if they wanted it to, but I guess the fact that they didn't is consistent with their overall approach to treat TTS output differently from normal audio output.
from audio_session.
Can you point to any other audio apps that correctly handle the interruption?
from audio_session.
After further investigation I can say it's not a bug of this plugin 🙂
I've checked Spotify, Youtube and Google Podcasts apps with ducking off and all these apps continue playback while TalkBack is in use. I'm using text to speech plugin along with audio_service
and audio_session
. Turns out TalkBack with ducking off stops TTS engine's playback directly but doesn't do anything with media players and their audio focus\session. TTS plugin I'm using receives a stop\interruption event but audio service and audio session don't and this is not an issue of this plugin but rather how things work on Android with that setting off.
from audio_session.
Related Issues (20)
- Can not play by speaker on iOS HOT 3
- Is it possible to play audio when Do Not Disturb mode is on, but not in silent mode? HOT 1
- `AVAudioSessionCategoryOptions`'s `contains` method takes `AVAudioSessionInterruptionOptions`. Maybe it should be `AVAudioSessionCategoryOptions`? HOT 5
- Dependency causing an ANR in the Background HOT 3
- The music played by IOS17 is not output from Bluetooth earphones HOT 2
- Android detects the headset as if it is connected even if it is not HOT 1
- Trouble closing an audio session HOT 1
- Echo cancellation HOT 3
- Can't get current audio device HOT 1
- failed for task ':audio_session:compileReleaseJavaWithJavac' (target SDK 33) HOT 1
- AudioSessionConfiguration with multiple categories causes PlatformException(-50)
- Execution failed for task ':audio_session:compileDebugJavaWithJavac' HOT 4
- [Question] Can audio playback be started while app is in the background in IOS? HOT 1
- file or directory '/home/user/.pub-cache/hosted/pub.dev/audio_session-0.1.19/android/src/debug/java', not found
- java issue to even run the project
- Notification stays open HOT 2
- Support rxdart 0.28.0
- OSStatus error 561017449
- please upgrade media2-session to 1.3.0 HOT 2
- negative interaction with flutter_soloud HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from audio_session.