react-native-tts icon indicating copy to clipboard operation
react-native-tts copied to clipboard

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

Open dorin2006 opened this issue 5 years ago • 2 comments

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

dorin2006 avatar May 09 '20 20:05 dorin2006

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 ?

denishgcirklestudio avatar Jan 22 '21 04:01 denishgcirklestudio

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

Satishpethani92 avatar Jan 22 '21 12:01 Satishpethani92