ekwek1/soprano
Local 80M-parameter TTS engine for streaming and batched English speech
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Soprano is a local TTS engine built around an 80M-parameter model and the Python SopranoTTS interface. The engine splits long text automatically and offers single-input, batched, and chunked synthesis. Backend selection is separate from device selection: the runtime supports Transformers and optional LMDeploy, while the device can be selected automatically or set to CUDA, CPU, or MPS.
The package depends on PyTorch and Transformers for its model runtime. Delivery options include the soprano CLI, a Gradio WebUI, and a FastAPI app served by Uvicorn at soprano.server:app. The HTTP integration exposes the OpenAI-compatible /v1/audio/speech route, while incremental audio is available from the Python interface and through local CLI playback. ONNX and ComfyUI integrations are separate projects, not additional inference backends selectable through the core CLI.
Key Capabilities & Differentiators
The engine generates 32 kHz English speech. Automatic splitting lets it handle text longer than a single model input. Python integrations can synthesize a single passage with infer, process multiple inputs with infer_batch, or consume audio incrementally with infer_stream. Sampling controls include temperature, top_p, and repetition_penalty. The HTTP route returns a complete WAV, not an audio stream.
Published figures include up to 20× real-time throughput on CPU and 2,000× on GPU, streaming latency below 250 ms on CPU and 15 ms on GPU, and memory use below 1 GB. The top GPU throughput figure is associated with sufficiently long inputs or large batches, and the streaming example uses chunk_size=1. These figures are not cold-start, end-to-end HTTP, or concurrent-serving guarantees. Benchmark warmed throughput and time to first audible output separately on the intended device.
Trade-offs & Limitations
Compared with using ElevenLabs as a hosted service, Soprano keeps inference on infrastructure you control, but you own dependency setup, capacity planning, and service operation. It is English-only and does not support voice cloning. Uncommon words, numbers, and symbols can be mispronounced, so normalize inputs where needed and test with domain-specific text rather than only with clean sample sentences.
The compact model makes CPU deployment worth evaluating, but serving capacity depends on the device, backend, request mix, and concurrency. Increasing the LMDeploy cache or decoder batch size can improve throughput at the cost of memory; neither removes the startup cost of repeatedly invoking the CLI. Teams that need remote streaming must build that integration around the Python streaming interface rather than assuming the OpenAI-compatible route provides it.
Hardware & Deployment Guide
Install soprano-tts on Python 3.10 or later for CPU or MPS; the documented CUDA path uses soprano-tts[lmdeploy]. The declared dependency floors are PyTorch 2.1 and Transformers 4.51. On Windows with CUDA, verify that PyTorch is a CUDA-enabled build after installation. For repeated requests, keep a SopranoTTS instance loaded in Python or deploy soprano.server:app under Uvicorn. Prefer the CLI for one-off jobs because it reloads the model on each invocation.
The CLI accepts a local model directory through --model-path, giving offline deployments a way to stage model files in advance. Test startup and synthesis with network access disabled before relying on that setup. The January 2026 model update introduced the Soprano-1.1-80M checkpoint, and the separate Soprano-Factory project added a training and fine-tuning path. Treat checkpoint selection and Python package upgrades as separate rollout decisions and regression-test voice output for each.
English narration, on-device assistants, and batch speech generation where you control the runtime and can test pronunciation on representative text.
You need multilingual speech, voice cloning, a managed service, or remote audio streaming without building an integration.
Quick Start & Installation
pip install soprano-tts[lmdeploy]Comparison vs. Top Voice, Vision & Video Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| soprano ★ | 1.6k | +2 | Python | Apache-2.0 | Local 80M-parameter TTS engine for streaming and batched English speech |
| fish-speech | 34k | +84 | Python | — | Self-hosted PyTorch speech inference for directed, multi-speaker audio |
| mlx-audio | 8.4k | +32 | Python | MIT | MLX inference SDK for local speech and audio pipelines on Apple Silicon |
| voice-pro | 13.5k | +34 | Python | GPL-3.0 | Self-hosted Gradio studio for transcription, translation, and dubbing |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/ekwek1/soprano.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about soprano
Does the OpenAI-compatible /v1/audio/speech route stream audio?
What hardware and memory should I budget?
Can I self-host Soprano in a commercial product?
When should I choose Soprano over ElevenLabs?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy