Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TirumalReddy opened this issue Jan 3, 2024 · 1 comment
Open

Comments

@TirumalReddy
Copy link

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)

@Stefanie-Twipe
Copy link

Having the same issue on version 4.1.1

On Android the listener is not being triggered, but on iOS it is.
For me this is not expected behavior..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants