iOS Question TTS output doesn't play in background

Branko Milosevic

Active Member
Licensed User
This note to the OS that the app is intending to play audio in the background didn't help with the persistent output in locked mode.
Part of the problem I suspect is that my TTS stream consist of a series of phrases with delays in between, all piled up in the queue. However, the
B4X:
TTS1_Complete(text)
event is raised after every phrase is spoken.
According to documentation the OS is not suppose to kill the process as long as the audio is playing and will kill it when it stops so I suspect the audio is interrupted with the delays and the process gets shut down. Amplified to the max I do here a faint sound of the silence and some audio output switching when TTS synthesizer is working.
Any idea? TYIA

B4X:
#PlistExtra: <key>UIBackgroundModes</key><array><string>audio</string></array>
 
Top