capacitor-community / text-to-speech

⚡️ Capacitor plugin for synthesizing speech from text.
MIT License
96 stars 27 forks source link

bug: stop() not working in IOS #122

Closed tspvivek closed 3 months ago

tspvivek commented 3 months ago

Plugin version: 4.0.1

Platform(s): IOS

Current behavior: When stop() is called the playback is still continuing in IOS, but works well in android and Web.

Expected behavior: Playback should have stopped immediately.

tspvivek commented 3 months ago

Sorry, Found what i am doing wrong. It seems like if stop() is called when speak() is still in progress android throws exception, but IOS doesn't so need to handle that in my code.

robingenz commented 3 months ago

In this case i am closing this issue.