dlutton / flutter_tts

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

"completionHandler" doesn't get triggered on iOS when speaking by the plugin is interrupted by some other audio related action like phone call, telegram/slack call, etc. #504

Open moksh-mahajan opened 5 months ago

moksh-mahajan commented 5 months ago

🐛 Bug Report

Upon testing on iOS I found that, when speaking is going on by the FlutterTTS and it's interrupted by a telegram call or slack huddle, cancelHandler gets triggered and it will start the speaking again from the very start again, and this second time speaking which is going on doesn't trigger completionHandler as well as even when I try to call the .stop() method in the cancelHandler, it doesn't stop the speaking.

Expected behavior

Reproduction steps

Configuration

Version: 4.0.2

Platform: