dlutton / flutter_tts

Flutter Text to Speech package
MIT License
613 stars 258 forks source link

If a language TTS hasn't been downloaded... #259

Open yasaman93 opened 3 years ago

yasaman93 commented 3 years ago

Hello and thank you for this library.

I want to know if a language hasn't been downloaded on a device, how can I use this library to download it and prevent this error?: speak failed: not bound to TTS engine

I did some tests, and I realized that when the application is closed and I open the app, It seems that this library automatically download the desired language tts. But when the app is open and I manually clear tts engine app data, I get this error: speak failed: not bound to TTS engine

Is the way I'm testing this issue wrong? Or there is some way to download the language programmatically?

dlutton commented 3 years ago

not bound to TTS engine should be related to the engine itself such as the Google TTS engine (com.google.android.tts) and not the language.

quickratio commented 2 years ago

Hello, thanks for the library, just bumping this old thread, is there anyway to programatically download a language pack? it does not appear to be automatic for me nor can i find any reference documents to support that it does. thanks.

dlutton commented 2 years ago

@quickratio this isn't an option at this time. If there is a known way to do so in Android, I don't mind implementing an option to do so through this package.

quickratio commented 2 years ago

@dlutton understood, thanks for your response and efforts! :)