ak1394 / react-native-tts

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

Not working for few BCP-47 language code #197

Closed stardev24 closed 2 years ago

stardev24 commented 2 years ago

I have tried setting language with the BCP-47 language code te-IN

Screenshot 2021-11-06 at 12 48 06 PM

Expected behaviour: Audio should come in specified language

Current behaviour: No audio

Do we have support for all languages?

ak1394 commented 2 years ago

The support for the particular language depends on underlying platform (iOS/Android). If there is no support for it on the handset, this library won't be able to play it.

stardev24 commented 2 years ago

Thanks for your comment.I am using Android with latest OS version. is there any method to get supported language details from headset?

ak1394 commented 2 years ago

Not through this library. If you can run native code, this looks helpful: https://stackoverflow.com/questions/4872702/get-available-locales-for-text-to-speech-tts