I have created a simple example for synthesising a string into an audio file and playing it when is ready. For this purpose, I have used the library flutter_tts (do
flutter_tts