ak1394 / react-native-tts

React Native Text-To-Speech library for Android and iOS
618 stars 156 forks source link

Tts.setDefaultLanguage() + Tts.speak() multiple calls (20-60 times) break Tts #140

Open dorin2006 opened 4 years ago

dorin2006 commented 4 years ago

Dear Colleagues,

I need your assistance and consulting, please help!

after calling Tts.setDefaultLanguage() Tts.speak()

multiple times, Tts stops working. this happens on a random amount of subsequent calls.

reason I am calling Tts.setDefaultLanguage() multiple times is I need to speak words in different languages, and this breaks Tts.

I've noticed that Tts.voices() then starts to return zero items in a list. When this happens, Tts does not speak anymore.

This happens on Android devices so far.

Best Regards, Volodymyr Fedyk

denishgcirklestudio commented 3 years ago

I do have the same issue on iOS. My app have ability to change language and start speaking. So if i do this multiple time, it causes crash on iOS side. Does anyone have solution for it ?

Satishpethani92 commented 3 years ago

I do have the same issue on iOS. My app has the ability to change language and start speaking. So if I do this multiple times, it causes a crash on the iOS side. Does anyone have any solution for it to work sometimes but when TTs in init that time I have getting a crash