Convert Text to Speech with Local KOKORO TTS — n8n Workflow

Low complexity Trigger4 nodes💎 Other👁 2,888 viewsby bswlife

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

Run python scriptPassing variablesStartPlay sound

Workflow Preview

R
Run python script
P
Passing variables
S
Start
P
Play sound
4 nodes3 edges

How it Works

  1. 1

    Trigger

    The workflow starts with a trigger trigger.

  2. 2

    Process

    Data flows through 4 nodes, connecting executecommand, manualtrigger, readbinaryfiles.

  3. 3

    Output

    The workflow completes its automation and delivers the result to the configured destination.

Node Details (4)

RU

Run python script

executeCommand

#1
PA

Passing variables

set

#2
ST

Start

manualTrigger

#3
PL

Play sound

readBinaryFiles

#4

How to Import This Workflow

  1. 1Click Download JSON button on the right to save the workflow file.
  2. 2Open your n8n instance. Go to Workflows → New → Import from file.
  3. 3Select the downloaded convert-text-to-speech-with-local-kokoro-tts file and click Import.
  4. 4Set up credentials for each service node (API keys, OAuth, etc.).
  5. 5Click Test Workflow to verify everything works, then activate it.

Or paste directly in n8n → Import from JSON:

{ "name": "Convert Text to Speech with Local KOKORO TTS", "nodes": [...], ...}

Integrations

executecommandmanualtriggerreadbinaryfilesset

Get This Workflow

Download and import in one click

Download JSONView on n8n.io
Nodes4
Complexitylow
Triggertrigger
Views2,888
CategoryOther

Created by

bswlife

bswlife

@bswlife

Tags

executecommandmanualtriggerreadbinaryfilesset

New to n8n?

n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.

Get n8n Free →