How to generate voiceovers locally with Kokoro TTS in Python (CPU only, no espeak): voice blends, unknown words, and a timeline to sync video to
python
dev.to
I render short explainer videos from code, and for weeks the voice was the one part I paid for per request. It is now a 50-line script running on the same CPU-only container that renders the frames. This post is that script, the two traps I hit installing it, and the one design decision that made the rest of the pipeline simpler: every line of narration becomes its own WAV, and the visuals are timed from the audio, not the other way round. Disclosure: I run small data pipelines and AI-agent aut