|
Download README.md from suryatmodulus/spero-1: direct link, hf CLI and curl.
- Browser
- Download file 20 kB
-
https://huggingface.co/suryatmodulus/spero-1/resolve/main/README.md
- Command line
-
hf download hf://suryatmodulus/spero-1/README.md
-
curl -L -o README.md https://huggingface.co/suryatmodulus/spero-1/resolve/main/README.md
20 kB
| language: | |
| - en | |
| license: apache-2.0 | |
| license_link: https://www.apache.org/licenses/LICENSE-2.0 | |
| library_name: spero-tts | |
| pipeline_tag: text-to-speech | |
| base_model: Qwen/Qwen3-TTS-12Hz-1.7B-Base | |
| tags: | |
| - text-to-speech | |
| - tts | |
| - english | |
| - speech-synthesis | |
| - qwen3-tts | |
| - streaming | |
| - triton | |
| - rlhf | |
| - grpo | |
| - dpo | |
| - apache-2.0 | |
| <p align="center"> | |
| <img src="./figures/hero_spero_1.png" alt="Spero-1 1.7B English TTS" width="100%"> | |
| </p> | |
| <p align="center"> | |
| <a href="https://github.com/0daycloud/spero-1">GitHub</a> | | |
| <a href="https://spero.audio">Playground & API</a> | | |
| <a href="#1-listen">Audio Samples</a> | | |
| <a href="#2-getting-started">Quickstart</a> | | |
| <a href="#3-architecture--acoustics">Architecture</a> | | |
| <a href="#4-evaluations--speed">Benchmarks</a> | | |
| <a href="./LICENSE">Apache-2.0</a> | |
| </p> | |
| **Spero-1** is an open-weight (**Apache-2.0**) English text-to-speech release from **PatientDesk AI / Spero Voice Lab**, ranked **#1 on Design Arena**. This repository includes both the **post-trained weights** (`~462 MB` FP32 `.safetensors` adapters + speaker tags) and the **complete production inference stack** (`spero_tts`): lossless BF16 Triton single-graph decoding, heterogeneous 6-stream sampling, in-batch text normalisation, batched parallel `D-sel` defect gating, zero-MOS physical prosody reranking, and ~150 ms causal streaming. | |
| <table> | |
| <tbody> | |
| <tr> | |
| <td style="background-color:rgba(128,128,128,0.08);font-weight:600;white-space:nowrap">Base Backbone</td> | |
| <td><a href="https://huggingface.co/Qwen/Qwen3-TTS-12Hz-1.7B-Base"><code>Qwen/Qwen3-TTS-12Hz-1.7B-Base</code></a> (Apache-2.0 · 12.5 Hz · 24 kHz)</td> | |
| <td style="background-color:rgba(128,128,128,0.08);font-weight:600;white-space:nowrap">Voices</td> | |
| <td> | |
| <span style="padding:2px 8px;border-radius:2px;background-color:rgba(18,52,246,0.18);font-weight:600;font-size:12px">spero-f1</span> (DPO) | |
| <span style="padding:2px 8px;border-radius:2px;background-color:rgba(128,128,128,0.20);font-weight:600;font-size:12px">spero-m1</span> (GRPO) | |
| </td> | |
| </tr> | |
| <tr> | |
| <td style="background-color:rgba(128,128,128,0.08);font-weight:600;white-space:nowrap">Released Weights</td> | |
| <td><code>462 MB</code> FP32 LoRA <code>.safetensors</code> + 2048-d speaker tags (SHA-256 verified)</td> | |
| <td style="background-color:rgba(128,128,128,0.08);font-weight:600;white-space:nowrap">Speed</td> | |
| <td><code>152 ms</code> streaming TTFA · <code>2.85–3.74×</code> RT full 6-take (Blackwell)</td> | |
| </tr> | |
| <tr> | |
| <td style="background-color:rgba(128,128,128,0.08);font-weight:600;white-space:nowrap">License</td> | |
| <td><strong>Apache-2.0</strong> (weights & inference code; training data/code not released)</td> | |
| <td style="background-color:rgba(128,128,128,0.08);font-weight:600;white-space:nowrap">Hosted API</td> | |
| <td><a href="https://spero.audio">spero.audio</a> · <code>$20 / 1M chars</code> (OpenAI SDK compatible)</td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| --- | |
| ## 1. Listen | |
| Unedited 24 kHz outputs rendered straight from `spero-1` across support calls, emails, narrative prose, and hard numbers/dates: | |
| <table> | |
| <thead> | |
| <tr> | |
| <th style="text-align:center;width:96px">Voice</th> | |
| <th style="width:125px">Category</th> | |
| <th style="width:270px">Audio (24 kHz WAV)</th> | |
| <th>Prompt</th> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| <tr> | |
| <td style="text-align:center"><span style="display:inline-block;padding:2px 8px;border-radius:2px;background-color:rgba(18,52,246,0.18);font-weight:600;font-size:12px">spero-f1</span></td> | |
| <td style="white-space:nowrap;font-size:12.5px">Support call</td> | |
| <td><audio controls src="./samples/01-support-refund-f1.wav"></audio></td> | |
| <td style="font-size:12.5px"><em>"Thanks for calling. I can see the charge you mentioned, and I've already sent the refund back to your card. It should show up in a few days. Is there anything else I can help you with today?"</em></td> | |
| </tr> | |
| <tr> | |
| <td style="text-align:center"><span style="display:inline-block;padding:2px 8px;border-radius:2px;background-color:rgba(128,128,128,0.22);font-weight:600;font-size:12px">spero-m1</span></td> | |
| <td style="white-space:nowrap;font-size:12.5px">Support call</td> | |
| <td><audio controls src="./samples/02-support-delivery-m1.wav"></audio></td> | |
| <td style="font-size:12.5px"><em>"No problem at all. We can move your delivery to Thursday morning instead. Someone will call you about an hour before they arrive, so you won't have to wait around."</em></td> | |
| </tr> | |
| <tr> | |
| <td style="text-align:center"><span style="display:inline-block;padding:2px 8px;border-radius:2px;background-color:rgba(18,52,246,0.18);font-weight:600;font-size:12px">spero-f1</span></td> | |
| <td style="white-space:nowrap;font-size:12.5px">E-mail</td> | |
| <td><audio controls src="./samples/03-email-proposal-f1.wav"></audio></td> | |
| <td style="font-size:12.5px"><em>"Hi Jordan, just a quick note to say the proposal looks good to me. I made two small changes on the second page. Could you take one more look before we send it on Friday?"</em></td> | |
| </tr> | |
| <tr> | |
| <td style="text-align:center"><span style="display:inline-block;padding:2px 8px;border-radius:2px;background-color:rgba(128,128,128,0.22);font-weight:600;font-size:12px">spero-m1</span></td> | |
| <td style="white-space:nowrap;font-size:12.5px">E-mail</td> | |
| <td><audio controls src="./samples/04-email-office-m1.wav"></audio></td> | |
| <td style="font-size:12.5px"><em>"Hi everyone, the office will be closed on Monday while the new floors go in. If you need anything from your desk, please pick it up before you leave on Friday. Thanks for your patience."</em></td> | |
| </tr> | |
| <tr> | |
| <td style="text-align:center"><span style="display:inline-block;padding:2px 8px;border-radius:2px;background-color:rgba(18,52,246,0.18);font-weight:600;font-size:12px">spero-f1</span></td> | |
| <td style="white-space:nowrap;font-size:12.5px">Story</td> | |
| <td><audio controls src="./samples/05-story-lighthouse-f1.wav"></audio></td> | |
| <td style="font-size:12.5px"><em>"The lighthouse had been dark for eleven years when Mara climbed the stairs with a lantern in one hand and her grandfather's key in the other. At the top, she stopped. Someone had swept the floor."</em></td> | |
| </tr> | |
| <tr> | |
| <td style="text-align:center"><span style="display:inline-block;padding:2px 8px;border-radius:2px;background-color:rgba(128,128,128,0.22);font-weight:600;font-size:12px">spero-m1</span></td> | |
| <td style="white-space:nowrap;font-size:12.5px">Story</td> | |
| <td><audio controls src="./samples/06-story-stairs-m1.wav"></audio></td> | |
| <td style="font-size:12.5px"><em>"He counted the steps twice, because the first number made no sense. Forty-one going down. Forty-three coming back. Somewhere in the dark, the old house had quietly added two."</em></td> | |
| </tr> | |
| <tr> | |
| <td style="text-align:center"><span style="display:inline-block;padding:2px 8px;border-radius:2px;background-color:rgba(18,52,246,0.18);font-weight:600;font-size:12px">spero-f1</span></td> | |
| <td style="white-space:nowrap;font-size:12.5px">Numbers & dates</td> | |
| <td><audio controls src="./samples/07-numbers-dates-f1.wav"></audio></td> | |
| <td style="font-size:12.5px"><em>"Your total is $142.50, scheduled for Nov. 12th at 3:15 PM in Apt. 4B. Please call (555) 234-5678 if anything changes."</em></td> | |
| </tr> | |
| <tr> | |
| <td style="text-align:center"><span style="display:inline-block;padding:2px 8px;border-radius:2px;background-color:rgba(128,128,128,0.22);font-weight:600;font-size:12px">spero-m1</span></td> | |
| <td style="white-space:nowrap;font-size:12.5px">Numbers & dates</td> | |
| <td><audio controls src="./samples/08-numbers-dates-m1.wav"></audio></td> | |
| <td style="font-size:12.5px"><em>"Flight UA 482 departs at 6:45 AM from Terminal 2B. Current temperature in Chicago is 38.5°F, and your confirmation code is K9P-42."</em></td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| --- | |
| ## 2. Getting Started | |
| Install the standalone Apache-2.0 package from [GitHub (`0daycloud/spero-1`)](https://github.com/0daycloud/spero-1) or the pre-built wheel in this repository (Python 3.10+, CUDA GPU recommended): | |
| ```bash | |
| pip install git+https://github.com/0daycloud/spero-1.git | |
| # or install the pre-built wheel directly from Hugging Face: | |
| pip install https://huggingface.co/cloud0day3/spero-1/resolve/main/spero_tts-1.0.0-py3-none-any.whl | |
| ``` | |
| ```python | |
| from spero_tts import SperoTTS | |
| # Default quality="best": exact #1 Design Arena pipeline | |
| # (6-stream BF16 Triton decode + in-batch Slot-5 normaliser + D-sel + zero-MOS prosody rerank) | |
| with SperoTTS() as tts: | |
| speech = tts.say( | |
| "Your total is $142.50, scheduled for Nov. 12th at 3:15 PM in Apt. 4B.", | |
| voice="spero-f1", | |
| path="appointment.wav", | |
| ) | |
| # Instant CUDA-graph-safe voice switch (0.00 GB extra VRAM) | |
| male = tts.say("No problem at all. We can move your delivery to Thursday morning.", voice="spero-m1") | |
| male.save("delivery.wav") | |
| # Low-latency causal streaming (~152 ms TTFA on GPU) | |
| for chunk in tts.stream("Let me pull up your reservation right now.", voice="spero-f1"): | |
| play(chunk) # float32 numpy array @ 24000 Hz | |
| ``` | |
| <details> | |
| <summary><strong>Fast single-take mode (8–12 GB VRAM, no ASR judges)</strong></summary> | |
| ```python | |
| from spero_tts import SperoTTS | |
| with SperoTTS(quality="fast") as tts: | |
| speech = tts.say("Single-take synthesis on one GPU.", voice="spero-m1", normalize=True) | |
| speech.save("fast.wav") | |
| ``` | |
| </details> | |
| <details> | |
| <summary><strong>CLI & written-to-spoken text normaliser</strong></summary> | |
| ```bash | |
| spero-tts "Hello from Spero-1." -v spero-f1 -o hello.wav | |
| spero-tts "Call at 3:15 PM for $42.50." -v spero-m1 --quality fast --normalize -o fast.wav | |
| spero-tts --list-voices | |
| spero-tts --normalize-only "$142.50 on Nov. 12th at 3:15 PM in Apt. 4B." | |
| ``` | |
| </details> | |
| <details> | |
| <summary><strong>Telephony & custom sample rates (16 kHz / 8 kHz / PCM16 / G.711 mu-law)</strong></summary> | |
| ```python | |
| speech_8k = tts.say("Your confirmation code is K9P-42.", voice="spero-f1", sample_rate=8000) | |
| pcm_bytes = speech_8k.pcm16_bytes() | |
| ulaw_bytes = speech_8k.ulaw_bytes() | |
| ``` | |
| </details> | |
| **Hardware:** | |
| - `quality="best"` (default, 6-stream Triton + `D-sel` Whisper `large-v3` + `wav2vec2`): **24 GB+ VRAM** (1x RTX 4090 / L40S / A100 / RTX PRO 6000) | |
| - `quality="fast"` (single-take Triton decode, no ASR judges): **8–12 GB VRAM** | |
| - **Local OpenAI-compatible server & examples:** see [`examples/openai_server.py`](https://github.com/0daycloud/spero-1/blob/main/examples/openai_server.py), [`examples/stream_demo.py`](https://github.com/0daycloud/spero-1/blob/main/examples/stream_demo.py), and CI on [GitHub (`0daycloud/spero-1`)](https://github.com/0daycloud/spero-1). | |
| --- | |
| ## 3. Architecture & Acoustics | |
| <p align="center"> | |
| <img src="./figures/fig1_architecture.png" alt="Spero-1 End-to-End Inference Pipeline" width="100%"> | |
| </p> | |
| <p align="center"> | |
| <img src="./figures/fig4_voice_acoustics.png" alt="Spero-1 24 kHz Spectrograms and F0 Pitch Contours" width="100%"> | |
| </p> | |
| - **Zero-VRAM Voice Switching:** Pre-merges `(base + anchor + voice_delta)` in FP32 and caches BF16 tensors in CPU RAM; switching `spero-f1` ↔ `spero-m1` copies in-place to fixed GPU addresses without breaking CUDA graphs. | |
| - **Zero-MOS Prosody Selection:** Clean takes are ranked strictly by physical acoustic and forced-alignment signals (punctuation pause cadence, `pyworld` F0 modulation and terminal question intonation, `nPVI` rhythm, energy arc) rather than black-box MOS models. | |
| - **Runtime Toggles:** Set `SPERO_FAST_TRITON=0` to disable custom Triton kernels (standard PyTorch CUDA graphs) or `SPERO_DSEL_BATCH_WHISPER=0` to disable batched CTranslate2 Whisper inside `D-sel`. | |
| --- | |
| ## 4. Evaluations & Speed | |
| <p align="center"> | |
| <img src="./figures/fig2_rl_posttraining.png" alt="Spero-1 112-Prompt DPO and GRPO Post-Training Evaluation" width="100%"> | |
| </p> | |
| <p align="center"> | |
| <img src="./figures/fig3_latency_engine.png" alt="Spero-1 RTX PRO 6000 Blackwell Speedups and Streaming TTFA" width="100%"> | |
| </p> | |
| <table> | |
| <thead> | |
| <tr> | |
| <th style="border-right:1px solid rgba(128,128,128,0.4)">Metric</th> | |
| <th style="text-align:center;border-right:1px solid rgba(128,128,128,0.4)">Spero-1 · <code>spero-f1</code></th> | |
| <th style="text-align:center;border-right:1px solid rgba(128,128,128,0.4)">Spero-1 · <code>spero-m1</code></th> | |
| <th style="text-align:center;font-weight:400">v0 Baseline (<code>f1</code> / <code>m1</code>)</th> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| <tr> | |
| <td colspan="4" style="background-color:rgba(128,128,128,0.12);font-weight:600">Post-Training (112 Held-Out Prompts · Single-Pass Raw, Before Best-of-6)</td> | |
| </tr> | |
| <tr> | |
| <td style="border-right:1px solid rgba(128,128,128,0.4)">Hard Defect Rate ↓</td> | |
| <td style="text-align:center;border-right:1px solid rgba(128,128,128,0.4)"><span style="display:block;padding:2px 6px;border-radius:2px;background-color:rgba(18,52,246,0.16);font-weight:600">9.8% (−35%)</span></td> | |
| <td style="text-align:center;border-right:1px solid rgba(128,128,128,0.4)"><span style="display:block;padding:2px 6px;border-radius:2px;background-color:rgba(18,52,246,0.26);font-weight:600">7.1% (−47%)</span></td> | |
| <td style="text-align:center">15.2% / 13.4%</td> | |
| </tr> | |
| <tr> | |
| <td style="border-right:1px solid rgba(128,128,128,0.4)">Whisper WER ↓</td> | |
| <td style="text-align:center;border-right:1px solid rgba(128,128,128,0.4)"><span style="display:block;padding:2px 6px;border-radius:2px;background-color:rgba(18,52,246,0.26);font-weight:600">0.54% (−32%)</span></td> | |
| <td style="text-align:center;border-right:1px solid rgba(128,128,128,0.4)"><span style="display:block;padding:2px 6px;border-radius:2px;background-color:rgba(18,52,246,0.16);font-weight:600">0.96% (−36%)</span></td> | |
| <td style="text-align:center">0.80% / 1.51%</td> | |
| </tr> | |
| <tr> | |
| <td style="border-right:1px solid rgba(128,128,128,0.4)">Long-Passage Fade (<code>fall_db</code>) ↓</td> | |
| <td style="text-align:center;border-right:1px solid rgba(128,128,128,0.4)"><span style="display:block;padding:2px 6px;border-radius:2px;background-color:rgba(18,52,246,0.16);font-weight:600">6.33 dB (−39%)</span></td> | |
| <td style="text-align:center;border-right:1px solid rgba(128,128,128,0.4)"><span style="display:block;padding:2px 6px;border-radius:2px;background-color:rgba(18,52,246,0.26);font-weight:600">5.20 dB (−24%)</span></td> | |
| <td style="text-align:center">10.35 / 6.83 dB</td> | |
| </tr> | |
| <tr> | |
| <td style="border-right:1px solid rgba(128,128,128,0.4)">Severe Seam Steps (≥16 dB) ↓</td> | |
| <td style="text-align:center;border-right:1px solid rgba(128,128,128,0.4)"><span style="display:block;padding:2px 6px;border-radius:2px;background-color:rgba(18,52,246,0.26);font-weight:600">5.4% (−62%)</span></td> | |
| <td style="text-align:center;border-right:1px solid rgba(128,128,128,0.4)"><span style="display:block;padding:2px 6px;border-radius:2px;background-color:rgba(18,52,246,0.26);font-weight:600">5.4% (−54%)</span></td> | |
| <td style="text-align:center">14.3% / 11.6%</td> | |
| </tr> | |
| <tr> | |
| <td style="border-right:1px solid rgba(128,128,128,0.4)">Yes/No Terminal Question Rise ↑</td> | |
| <td style="text-align:center;border-right:1px solid rgba(128,128,128,0.4)"><span style="display:block;padding:2px 6px;border-radius:2px;background-color:rgba(18,52,246,0.16);font-weight:600">+2.23 st</span></td> | |
| <td style="text-align:center;border-right:1px solid rgba(128,128,128,0.4)"><span style="display:block;padding:2px 6px;border-radius:2px;background-color:rgba(18,52,246,0.26);font-weight:600">+4.37 st</span></td> | |
| <td style="text-align:center">+0.58 st / -</td> | |
| </tr> | |
| <tr> | |
| <td colspan="4" style="background-color:rgba(128,128,128,0.12);font-weight:600">Live Production Serving (RTX PRO 6000 Blackwell · Full Best-of-6 + Triton + Batched D-sel)</td> | |
| </tr> | |
| <tr> | |
| <td style="border-right:1px solid rgba(128,128,128,0.4)">24-Prompt Quality Gate<br><span style="font-size:11px;opacity:0.7">Hard defects / WER / Prosody</span></td> | |
| <td colspan="2" style="text-align:center;border-right:1px solid rgba(128,128,128,0.4)"><span style="display:block;padding:2px 6px;border-radius:2px;background-color:rgba(18,52,246,0.26);font-weight:600">0 / 24 (0.0%) · 2.18% WER · 0.9346 prosody · 2.42× faster</span></td> | |
| <td style="text-align:center">0 / 24 · 2.29% · 0.9266</td> | |
| </tr> | |
| <tr> | |
| <td style="border-right:1px solid rgba(128,128,128,0.4)">Short / Medium / Numbers Wall ↓</td> | |
| <td colspan="2" style="text-align:center;border-right:1px solid rgba(128,128,128,0.4)"><span style="display:block;padding:2px 6px;border-radius:2px;background-color:rgba(18,52,246,0.16);font-weight:600">1.33 s (1.83×) / 2.35 s (2.03×) / 2.21 s (3.23×)</span></td> | |
| <td style="text-align:center">2.44 s / 4.15 s / 7.14 s</td> | |
| </tr> | |
| <tr> | |
| <td style="border-right:1px solid rgba(128,128,128,0.4)">Streaming TTFA / Cold Load ↓</td> | |
| <td colspan="2" style="text-align:center;border-right:1px solid rgba(128,128,128,0.4)"><span style="display:block;padding:2px 6px;border-radius:2px;background-color:rgba(18,52,246,0.16);font-weight:600">152–157 ms TTFA · 21 s load (2 graphs)</span></td> | |
| <td style="text-align:center">- / 86 s (640 graphs)</td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| --- | |
| ## 5. Files, License & Citation | |
| <details> | |
| <summary><strong>Repository file tree (81 files, 471 MB total)</strong></summary> | |
| ```text | |
| cloud0day3/spero-1/ | |
| ├── README.md # Model card & usage guide | |
| ├── LICENSE # Apache-2.0 | |
| ├── NOTICE # Third-party attributions | |
| ├── config.json # Model, voice, sampling, and renderer config | |
| ├── figures/ # 2x Retina architecture, acoustic, and eval visuals | |
| ├── samples/ # 8 lossless 24 kHz WAV demos + samples.json | |
| ├── weights/ | |
| │ ├── manifest.json # SHA-256 verified adapter & voice-tag manifest | |
| │ ├── anchor.safetensors # 153.9 MB FP32 rank-32 WiSE-FT anchor LoRA | |
| │ ├── spero-f1.safetensors # 153.9 MB FP32 rank-32 DPO female adapter | |
| │ ├── spero-m1.safetensors # 153.9 MB FP32 rank-32 GRPO male adapter | |
| │ └── voices.safetensors # 16.7 KB FP32 2048-d speaker tags | |
| ├── spero_tts-1.0.0-py3-none-any.whl # Pre-built standalone Python wheel | |
| └── spero_tts/ # Readable Apache-2.0 inference source tree | |
| ``` | |
| </details> | |
| **Related open models from Spero Voice Lab:** [`cloud0day3/antalia-mini`](https://huggingface.co/cloud0day3/antalia-mini) (7.6M 48 kHz CPU Turkish TTS) · [`cloud0day3/kuroko`](https://huggingface.co/cloud0day3/kuroko) (14.9M #1 TurnBench turn-taking model) | |
| **License & attribution:** Weights and `spero_tts` code are released under **Apache-2.0** ([`LICENSE`](./LICENSE), [`NOTICE`](./NOTICE)). Built on `Qwen/Qwen3-TTS-12Hz-1.7B-Base` (Apache-2.0), with normaliser tables from OpenAI Whisper (MIT) & BSD `web2` (public domain), whistle detection from Antalia-2 Mini (Apache-2.0), and runtime `D-sel` judges `Systran/faster-whisper-large-v3` (MIT) & `facebook/wav2vec2-large-960h-lv60-self` (Apache-2.0). | |
| ```bibtex | |
| @misc{spero1_2026, | |
| title = {Spero-1: Open-Weight English Text-to-Speech}, | |
| author = {Saygili, Sezgin and PatientDesk AI}, | |
| year = {2026}, | |
| url = {https://huggingface.co/cloud0day3/spero-1} | |
| } | |
| ``` | |