█

AI/TLDR

Buy me a coffee
Buy me a coffee

Soprano

An 80M-parameter on-device text-to-speech engine you pip-install and run as a CLI, a web UI, an OpenAI-compatible server or a Python library

Audio, Music & VoiceOpen source
Language
Python
License
Apache-2.0
IN SHORT

What is Soprano?

Soprano is an open-source text-to-speech (TTS) engine built around a compact 80M-parameter model. It sits in the Audio, Music & Voice category of the Multimodal Generation tools and is open-source, written in Python and licensed Apache-2.0. To get started: install the package.

Overview

Soprano is an open-source text-to-speech (TTS) engine built around a compact 80M-parameter model. It ships as the `soprano-tts` Python package, so installing it gives you a command-line tool, a local web UI, an OpenAI-compatible speech server and a `SopranoTTS` Python class, all backed by the same model. The project describes it as ultra-lightweight and on-device: the README states under 1 GB of memory use and 32 kHz audio output, with support for CUDA, CPU and Apple MPS devices on Windows, Linux and macOS.

Speed is the headline. The README claims up to 20x real-time generation on CPU and 2000x real-time on GPU, and streaming playback with under 250 ms latency on CPU and under 15 ms on GPU. Long inputs are split into sentences automatically, which is how it supports effectively unlimited generation length, and batched inference lets you synthesise many lines in one call. On CUDA an optional LMDeploy backend (installed with the `[lmdeploy]` extra) speeds things up further; elsewhere it runs on the Transformers backend.

The project is candid about its limits: the README says Soprano is English-only, does not support voice cloning, and was trained on about 1,000 hours of audio, so uncommon words may be mispronounced. Model weights are published on Hugging Face (Soprano-80M, then Soprano-1.1-80M, which the project says has 95% fewer hallucinations), and a companion repository, Soprano-Factory, lets you train or fine-tune your own Soprano models. Community projects add an ONNX web build and ComfyUI nodes.

What it does

  • Four ways to run the same model: the `soprano` CLI, the `soprano-webui` browser UI, an OpenAI-compatible `/v1/audio/speech` server and the `SopranoTTS` Python API
  • Streaming inference (`infer_stream`) that the project quotes at under 15 ms latency on GPU and under 250 ms on CPU
  • Batched inference (`infer_batch`) and automatic text splitting for long inputs
  • Runs on CUDA, CPU and Apple MPS, with `auto`, `transformers` or `lmdeploy` backends and tunable cache size and decoder batch size
  • Compact 80M-parameter model producing 32 kHz audio in under 1 GB of memory, per the README
  • Sampling controls (temperature, top_p, repetition_penalty) so you can regenerate a line for a different reading

Getting started

Soprano installs from PyPI. Pick the CUDA wheel if you have an NVIDIA GPU, otherwise the plain package covers CPU and Apple MPS. On Windows with CUDA, the README notes pip installs a CPU-only PyTorch, so reinstall PyTorch with the CUDA wheel afterwards.

Install the package

Use the `lmdeploy` extra on CUDA machines; drop it for CPU or MPS.

bashbash
# CUDA
pip install soprano-tts[lmdeploy]

# CPU / MPS
pip install soprano-tts

Speak from the command line

Writes `output.wav` by default; `--streaming` plays to your speakers instead. The CLI reloads the model on every call, so it is the slowest way to run Soprano.

bashbash
soprano "Soprano is an extremely lightweight text to speech model."

Or open the web UI

Serves a local interface on http://127.0.0.1:7860 by default.

bashbash
soprano-webui

Serve an OpenAI-compatible endpoint

Start the server, then call `/v1/audio/speech`. The endpoint returns non-streaming output.

bashbash
uvicorn soprano.server:app --host 0.0.0.0 --port 8000

curl http://localhost:8000/v1/audio/speech \
  -H "Content-Type: application/json" \
  -d '{
    "input": "Soprano is an extremely lightweight text to speech model."
  }' \
  --output speech.wav

Use it from Python

Load the model once, then call `infer`, `infer_batch` or `infer_stream`.

pythonpython
from soprano import SopranoTTS

model = SopranoTTS(backend='auto', device='auto', cache_size_mb=100, decoder_batch_size=1)

# Save output to a file
out = model.infer("Soprano is an extremely lightweight text to speech model.", "out.wav")

# Streaming inference
from soprano.utils.streaming import play_stream
stream = model.infer_stream("Soprano is an extremely lightweight text to speech model.", chunk_size=1)
play_stream(stream)

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Adding fast, local English speech output to an app or agent without paying for a hosted TTS API
  • Dropping a self-hosted replacement behind code that already calls an OpenAI-style `/v1/audio/speech` endpoint
  • Low-latency voice replies in assistants and demos where streaming playback has to start almost immediately
  • Bulk narration jobs (many short lines or long documents) using batched inference on a GPU

How Soprano compares

Soprano alongside other open-source audio, music & voice tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
VoiceStudio★ 121kA local-first desktop voice studio that clones and designs voices, dubs video, and handles dictation, running 16 text-to-speech and 11 speech-recognition engines on your own hardware.
Whisper★ 114kOpenAI's speech recognition model that transcribes and translates audio across many languages.
GPT-SoVITS★ 64.3kAn open-source WebUI that clones a voice from a short audio sample and turns text into speech, with zero-shot and few-shot fine-tuning.
Voicebox★ 61.6kLocal-first voice studio that clones a voice from a short sample, generates speech across seven TTS engines and 23 languages, handles system-wide dictation, and speaks for agents over MCP.
VibeVoice★ 57.6kMicrosoft's text-to-speech model for generating long, expressive multi-speaker audio like podcasts.
whisper.cpp★ 55.7kA dependency-free C/C++ port of Whisper built on ggml, running speech recognition on CPU, Metal, CUDA, Vulkan and NPUs from phones to servers.
Coqui TTS★ 46.3kA library of text-to-speech models including the multilingual XTTS voice-cloning model.
Soprano★ 1.6kAn 80M-parameter on-device text-to-speech engine you pip-install and run as a CLI, a web UI, an OpenAI-compatible server or a Python library