dlutton / flutter_tts

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

Multiple synthesizers for iOS #510

Open mvrsn opened 4 months ago

mvrsn commented 4 months ago

🚀 Feature Requests

When I use TTS for Android switching between two languages is very responsive and gives a good user experience, but when doing the same for iOS I discovered that the language needs to be loaded as a synthesizer which on a language change gets replaced on every language change, so if the language changes are frequent this can cause a really sluggish experience

I've experimented a bit with a fork and replaced the synthesizer with a list of synthesizers (one per language), and it seems to work well for the experiment, but I am no iOS developer so I cut a lot of corners to make things work for my use case, but maybe this is a feature that could be beneficial for more people if it was implemented properly by someone that knows what they are doing

Platforms affected (mark all that apply)