Closed yjlim5 closed 7 years ago
@yjlim5 Thank you so much for the PR, I will review and update it.
@mihirsoni thank you for providing this library and reviewing my PR! We have been using this library extensively as part of our language learning app.
I was surprised to find that the speech part was not working on some of the latest Android devices, like Galaxy S8 - produced by Korea yet no Korean TTS voice installed by default. I hope the changes in this PR will help dealing with missing voice issues.
Currently, the
speak
function fails silently if the requested language is not supported on the device. To address this issue, this PR adds:speak
that requested language is not availablecheckLanguageAvailability(language)
for checking language supportdownloadTTSVoice()
for TTS Voice download pageTogether these changes will allow developers to easily detect and handle error cases where the language support is unavailable on Android device.