ak1394 / react-native-tts

React Native Text-To-Speech library for Android and iOS
601 stars 154 forks source link

await Tts.stop() method behaving differently in android and ios #256

Open TirumalReddy opened 6 months ago

TirumalReddy commented 6 months ago

useEffect(() => {

Tts.addEventListener('tts-finish', (event) => setIsSpeechFinished(true));

return () => {
  Tts.removeAllListeners('tts-finish');
};

}, []);

I am using tts-finish listener in this way, when i used ' await Tts.stop()' method, In android tts-finish listener not triggering but when it comes to IOS it's triggering. Please comment on this Is this expected behaviour?

Currently using: react-native-tts version :4.1.0 React Native Version : 0.71.7

Tested in Android - 13 (one plus) IOS - 17 (iphone 15)