workflows.fit
Back to n8n workflows
n8n templateFreeBy bswlife

Convert text to speech with local KOKORO TTS

Disclaimer The Execute Command node is only supported on self-hosted (local) instances of n8n. Introduction ![1.jpg](fileId:1114) KOKORO TTS - Kokoro TTS is a compact yet powerful text-to-speech model, currently avail...

DevelopmentCore NodesExecute CommandSetManual TriggerRead Binary Files
Loading interactive preview...

Template notes

Disclaimer The Execute Command node is only supported on self-hosted (local) instances of n8n.

Introduction ![1.jpg](fileId:1114)

KOKORO TTS - Kokoro TTS is a compact yet powerful text-to-speech model, currently available on Hugging Face and GitHub. Despite its modest size—trained on less than 100 hours of audio—it delivers impressive results, consistently topping the TTS leaderboard on Hugging Face. Unlike larger systems, Kokoro TTS offers the advantage of running locally, even on devices without GPUs, making it accessible for a wide range of users.

Who will benefit from this integration?

This will be useful for video bloggers, TikTokers, and it will also enable the creation of a free voice chat bot. Currently, TTS models are mostly paid, but this integration will allow for fully free voice generation. The possibilities are limited only by your imagination.

Note Unfortunately, we can't interact with the KOKORO API via browser URL (GET/POST), but we can run a Python script through n8n and pass any variables to it.

In the tutorial, the D drive is used, but you can rewrite this for any paths, including the C drive.

Step 1