npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

n8n-nodes-ttsbro

v0.1.6

Published

Text-to-Speech n8n node using sherpa-onnx Kokoro model

Downloads

492

Readme

TTS Bro - n8n Text-to-Speech Node

License: Apache 2.0 n8n Community Node

Text-to-Speech n8n node powered by sherpa-onnx and the Kokoro TTS model.

🎯 Pure JavaScript/WebAssembly - No native binary dependencies!
High Performance - Singleton TTS instance for fast subsequent calls
🔒 Offline - Runs completely locally, no API calls needed
🐳 Docker Ready - Works in containerized n8n environments

Features

  • High-Quality Neural TTS using Kokoro-82M model
  • Multiple Voices - 10+ speaker voices available
  • Adjustable Speed - 0.5x to 2.0x speech speed control
  • Multiple Output Formats - WAV or Raw PCM
  • Binary Output - Audio data as n8n binary property
  • Works in Docker - Pure WASM, no native dependencies

Installation

Option 1: Docker (Recommended)

Use the provided Dockerfile and docker-compose.yml:

# Download Kokoro model (304MB)
npm run download-model

# Build and run
docker-compose up --build

Option 2: n8n Community Nodes

  1. Go to Settings > Community Nodes
  2. Enter n8n-nodes-ttsbro
  3. Click Install

Option 3: Manual Installation

# Install the node
cd ~/.n8n/custom
npm install n8n-nodes-ttsbro

# Download the model
cd node_modules/n8n-nodes-ttsbro
npm run download-model

# Restart n8n

Usage

  1. Add the TTS Bro node to your workflow

  2. Configure:

    • Text: The text to convert to speech
    • Voice: Select a speaker voice (0-9)
    • Speed: Speech speed (default: 1.0)
    • Output Format: WAV or Raw PCM
    • Binary Property: Name for the output (default: "audio")
  3. Output is a binary audio file that can be:

    • Saved to disk
    • Uploaded to cloud storage
    • Sent via messaging apps
    • Played in browsers

Node Properties

| Property | Type | Default | Description | |----------|------|---------|-------------| | Text | string | - | Text to synthesize (required) | | Voice | options | Voice 0 | Speaker voice selection | | Speed | number | 1.0 | Speech speed (0.5-2.0) | | Format | options | WAV | Output format (WAV/Raw PCM) | | Binary Property | string | audio | Output property name |

Output

{
  "json": {
    "text": "Hello world!",
    "voice": 0,
    "speed": 1.0,
    "format": "wav",
    "sampleRate": 24000,
    "duration": 1.23,
    "byteLength": 54382
  },
  "binary": {
    "audio": { ... }  // Binary audio data
  }
}

Technical Details

  • TTS Engine: sherpa-onnx via WebAssembly
  • Model: Kokoro-82M (English, multi-voice)
  • Sample Rate: 24000 Hz
  • Bit Depth: 16-bit
  • Channels: Mono

Model Info

The Kokoro model is:

  • 82 million parameters - Compact yet high quality
  • Apache 2.0 licensed - Free for commercial use
  • Multi-voice - Multiple speaker styles
  • English focused - Optimized for English text

Requirements

  • Node.js >= 18
  • n8n >= 1.0.0
  • ~150MB disk space for model files

Development

# Clone and install
git clone https://github.com/your-username/n8n-nodes-ttsbro.git
cd n8n-nodes-ttsbro
npm install

# Download model
npm run download-model

# Build
npm run build

# Run with n8n
npm run start

Legal & License

This project is licensed under the Apache License 2.0.

[!IMPORTANT] This distribution includes components and models with different licenses. Please see the NOTICE file for full third-party attribution and license details.

Third-Party Components

| Component | License | Notes | |-----------|---------|-------| | sherpa-onnx | Apache 2.0 | TTS inference engine | | Kokoro-82M | Apache 2.0 | TTS Model weights | | ONNX Runtime | MIT | Neural network inference runtime | | eSpeak NG | GPL v3 | Data/Phonemes used by the model |

Note on GPL Compatibility: The Kokoro model utilizes data derived from eSpeak NG (GPL v3). If you modify and redistribute the model files or this package, you must comply with the terms of the GPL v3 where applicable.

Credits

  • sherpa-onnx - For the amazing WebAssembly TTS engine.
  • hexgrad - For training and releasing the Kokoro model.
  • n8n - For the workflow automation platform.

See Also