# Supertonic

> Lightning-fast on-device text-to-speech that runs locally with no cloud

- Category: Multimodal Generation / Audio, Music & Voice
- Language: Swift
- Licence: MIT
- Repository: https://github.com/supertone-oss-archive/supertonic
- Website: https://huggingface.co/spaces/Supertone/supertonic-3
- Canonical page: https://ai-tldr.dev/tools/supertonic/

## In short

Supertonic is an open-weight text-to-speech (TTS) system built for fast, local speech synthesis. It runs entirely on your own device through ONNX Runtime, so there are no cloud servers, no API calls, and no data leaving your machine. It sits in the Audio, Music & Voice category of the Multimodal Generation tools and is open-source, written in Swift and licensed MIT.

## Overview

Supertonic is an open-weight text-to-speech (TTS) system built for fast, local speech synthesis. It runs entirely on your own device through ONNX Runtime, so there are no cloud servers, no API calls, and no data leaving your machine. This makes it a good fit for projects where speed and privacy both matter.

The model is small by TTS standards, with only 99 million parameters, which keeps downloads light and cold starts quick. It supports 31 languages, outputs studio-grade 44.1kHz 16-bit WAV audio, and ships with ready-to-use SDK examples for many languages including Python, Node.js, the browser via WebGPU, Java, C++, C#, Go, Swift, Rust, and Flutter.

## What it does

- Runs fully on-device through ONNX Runtime with no network dependency, no GPU requirement, and complete privacy
- Compact 99M-parameter open-weight model that downloads quickly and uses little memory compared to larger TTS systems
- Supports 31 languages directly, plus a language-agnostic 'na' mode when the input language is unknown
- Outputs high-quality 44.1kHz 16-bit WAV audio ready for playback without an external upsampler
- Inline expression tags such as <laugh>, <breath>, and <sigh> add natural human nuance without reference audio
- Multi-runtime SDK examples for Python, Node.js, browser (WebGPU), Java, C++, C#, Go, Swift, iOS, Rust, and Flutter

## Getting started

The quickest path is the Python SDK, which downloads the model from Hugging Face automatically on first run. You can generate speech in a few lines or expose Supertonic as a local HTTP server.

1. Install the Python SDK

   Install the package with pip. On the first run, Supertonic downloads the model assets from Hugging Face automatically.

```bash
pip install supertonic
```

2. Generate speech in Python

   Create a TTS object, pick a voice style, and synthesize text to a WAV file. You can set the language, quality steps, and speaking speed.

```python
from supertonic import TTS

tts = TTS(auto_download=True)
style = tts.get_voice_style(voice_name="M1")
text = "Supertonic is a lightning fast, on-device TTS system."

wav, duration = tts.synthesize(
    text=text,
    lang="en",
    voice_style=style,
    total_steps=8,
    speed=1.05,
)
tts.save_audio(wav, "output.wav")
```

3. Run a local HTTP server

   The Python SDK can run Supertonic as a local service with a native /v1/tts endpoint and an OpenAI-compatible /v1/audio/speech endpoint, plus interactive docs at /docs.

```bash
pip install 'supertonic[serve]'
supertonic serve --host 127.0.0.1 --port 7788
```

4. Clone the repo for other runtimes

   To use the Node.js, browser, Java, C++, Go, or other examples, clone the repository and download the ONNX models and preset voices into the assets directory with Git LFS.

```bash
git clone https://github.com/supertone-inc/supertonic.git
cd supertonic
git lfs install
git clone https://huggingface.co/Supertone/supertonic-3 assets
```

## When to use it

- Adding offline, private voice output to desktop, mobile, or edge apps where data must stay on the device
- Reading entire webpages or documents aloud quickly thanks to low-latency, real-time synthesis
- Building multilingual voice features across 31 languages without separate per-language adapters
- Serving local speech generation to agents, browser extensions, or OpenAI-compatible audio clients through the built-in HTTP server
