dlutton / flutter_tts

Flutter Text to Speech package
MIT License
613 stars 258 forks source link

Error when working with audioPlays package #315

Open luomo-pro opened 2 years ago

luomo-pro commented 2 years ago

On the iOS platform,When I use tts to read a text aloud while using the audioPlays package to play a short sound effect, I get the following error message: "Error configuring audio session: Error Domain=NSOSStatusErrorDomain Code=560030580 \"(null)\"" [AXTTSCommon] _BeginSpeaking: couldn't begin playback

it will terminate the speech of tts. If I don't call audioPlays to play the sound effects, then tts can read the text aloud normally. I don't know if this error is caused by flutter_tts or audioPlays, can there be a solution? This is the audioPlays package: https://pub.dev/packages/audioplayers

dlutton commented 2 years ago

@luomo-pro that's a tough one to troubleshoot, but I'll see what I can find out.

sylvainjack commented 2 years ago

Hello :) Am having the same kind of problem. When I use TTS, my sound effects with AUDIOPLAYERS will only play once. It doesn't terminate TTS, but Audioplayers doesn't seem to work anymore.