I saved this to pastebin (mostly to see the syntax). Does this require Voicegen to be installed or how's it working?
https://pastebin.com/zuRVpiVh
I've played with it a bit (I made a local nonsense social media thing, reading llm content), and its surprisingly easy to get text to display in sync with the audio. It works with voices that are installed on the users system.