by Eugen Gez
A simple text-to-speech flow with a cache feature.
TTS engines sometimes need a little bit more time to process some texts. It also makes no sense to process the same text again and again. This flow builds a unique file path from the text and, if it does not exist yet, uses the "Speak to file" block to create a wav file containing the spoken text.
Start this flow from another one and it will speak the payload using default language and TTS engine.
To force a non-default language, prefix the text with a language code followed by hash character, just like:
Limitations: You cannot directly wait until it's finished. Use "Fiber stopped?" block as workaround.
- Added queuing to avoid parallel processing.
NOTE: This brakes the "Fiber stopped?" workaround if you rely on.
- Create cache directory if missing.
- Limit file name length.
- Support optional language override.
Reviews and ratings can be submitted in the app.