Open noorbakerally opened 1 year ago
@noorbakerally try using one of these categories:
iosAudioCategoryPlayback
or iosAudioCategoryPlaybackAndRecord
@dlutton I am already using it, As it can be seen in the code i above, i am getting the category playback
as below
await speakerPlugin
.setIosAudioCategory(IosTextToSpeechAudioCategory.playback, [
IosTextToSpeechAudioCategoryOptions.mixWithOthers,
IosTextToSpeechAudioCategoryOptions.duckOthers
]);
I have tried playbackAndRecord also, but no success
@dlutton any possible solution for this?
@noorbakerally I've yet to recreate the issue, are you running any other voice packages that could be interfering with it?
@dlutton I use Flutterbeep to make beep sounds, i'll check whether removing the package make any difference.
@dlutton I've removed Flutterbeep but still no success
@noorbakerally I'll continue looking into this issue. Usually it's an issue with not setting the right audio category, but it looks like you're setting it.
@dlutton we tried something on our side, we removed the line await speakerPlugin.setVoice(voices[defaultvoiceix]);
and it's now working even in the background. However, this line is important for us to set a language based on the user's regional settings. Any idea why this line could be causing this?
@noorbakerally can you provide the value you're passing into setVoice? I'll attempt to recreate the issue locally.
Same issue
Facing Same Issue
π Bug Report
I am unable to play an audio that is generated using text to speech plugin on iOS only.
Expected behavior
Background Settings in info.plist
Speaker Configuration
Reproduction steps
Configuration
Version: 0.1.x
Platform: