Convert Text to Speech with Local KOKORO TTS — n8n Workflow
Overview
Disclaimer The Execute Command node is only supported on self-hosted (local) instances of n8n.
Introduction
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
Nodes used
Workflow Preview
How it Works
- 1
Trigger
The workflow starts with a trigger trigger.
- 2
Process
Data flows through 4 nodes, connecting executecommand, manualtrigger, readbinaryfiles.
- 3
Output
The workflow completes its automation and delivers the result to the configured destination.
Node Details (4)
Run python script
executeCommand
Passing variables
set
Start
manualTrigger
Play sound
readBinaryFiles
How to Import This Workflow
- 1Click Download JSON button on the right to save the workflow file.
- 2Open your n8n instance. Go to Workflows → New → Import from file.
- 3Select the downloaded
convert-text-to-speech-with-local-kokoro-ttsfile and click Import. - 4Set up credentials for each service node (API keys, OAuth, etc.).
- 5Click Test Workflow to verify everything works, then activate it.
Or paste directly in n8n → Import from JSON:
Integrations
Created by
bswlife
@bswlife
Tags
New to n8n?
n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.
Get n8n Free →