flutter_tts icon indicating copy to clipboard operation
flutter_tts copied to clipboard

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

Open yasaman93 opened this issue 4 years ago • 4 comments
trafficstars

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?

yasaman93 avatar Jul 18 '21 13:07 yasaman93

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.

dlutton avatar Jul 18 '21 22:07 dlutton

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.

quickratio avatar Mar 28 '22 07:03 quickratio

@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.

dlutton avatar Mar 30 '22 16:03 dlutton

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

quickratio avatar Mar 31 '22 02:03 quickratio