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.
- Accept arrays of texts as well.
- 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.
Rate and review within the app in the Community section.