🌱 SeedVox β€” speech that plans before it speaks
1 / N
0:20
Technical deep-dive

🌱 SeedVox

Speech that plans before it speaks.

Smarter Speech AI β€” bigger, better data, smarter architecture, better prosody.

Today's speech engines treat expression like a brute-force problem: a single autoregressive model guesses emotion token by token. But emotion is a global state of mind that shapes an entire sentence before we even speak. SeedVox separates the "what" from the "how" β€” and the "who" β€” with structural priors, so each component learns a clean job.

AR Phonetic Planner

the "what" Stable, hallucination-free phoneme planning & acoustic anchoring.

JEPA World Model

the "how" Reads the whole sentence/context at once, predicts a global prosody latent before generation.

Speaker Conditioning

the "who" A reference clip β†’ speaker latent re-tunes phonemes & prosody to that voice via FiLM adaptation β€” identity, not guessed.

AR Acoustic Decoder

the renderer Renders What + How + Who into audio tokens, guided by the JEPA latent.

Open-source research & education sandbox Β· Apache License 2.0 Β· github.com/v7aresky/seedvox

1:00

Motivation

Big labs win by scale: enormous transformers, enormous data, enormous finetuning efforts, brute-force token-by-token meaning. SeedVox argues that structure beats scale at the same budget.

Big labs β†’ big compute and big data

Monolithic AR models hide expressiveness problems behind parameter and data counts most researchers and small labs can't afford.

Token-by-token emotion

Treating emotion as an autoregressive roll is brute force β€” it drifts and loses whole-sentence tension.

Hallucination & no low-level control

Frontier TTS hallucinates, stumbles on edge cases, and follows instructions inconsistently β€” and offers no fine control: you can't fix a mispronounced name or steer an pitch/prosody contour or timing.

That's exactly what SeedVox is designed to solve: an explicit AR phoneme planner (pronunciation control, robust g2p), an explicit JEPA prosody latent (steer prosody & timing), and structural priors that keep generation grounded β€” resisting hallucination and edge-case drift.
The frugality thesis: Do you need a giant lab's compute to get SOTA-quality voice? What if ... we split the job, bake in structure, and try a single RTX 5090 to train and run it β€” real-time for interaction, fully local and fully yours. Frugal, accessible, educational.
1:15

Data β€” enough, not massive

Structure beats scale extends to data: no proprietary corpora, no internet scrape. Five public speech sets β€” 276,529 utterances Β· 319.3 h β€” pre-cooked offline, so training just streams cached rows.

CorpusHoursUtterancesRole
HiFiTTS116.0125,844High-fidelity audiobooks β€” a clean acoustic backbone.
GLOBES104.681,299LibriVox (audiobook) excerpts β€” many speakers & reading styles.
LibriTTS53.833,113US audiobooks β€” train-clean-100 subset, 247 speakers.
LJSpeech23.012,500Single speaker audiobook readings.
DailyTalk21.923,773Conversational dialogues β€” natural give-and-take.
Total (5 sets)319.3 h276,529utterances

Offline pre-tokenization

Each utterance is resolved once into a .pt row β€” audio tokens (16Γ—RVQ) Β· text Β· phoneme ids Β· acoustic features (F0/E/V) β€” no live feature extraction in training.

Frame-aligned prosody

log-F0 (median-filtered) and log-energy at 12.5 Hz β€” aligned to the audio tokens.

Center, don't standardize

Subtract per-utterance median log-F0 / mean log-energy, but keep the variance β€” excursions stay meaningful.

Roughly 3 orders of magnitude smaller β€” about 1/1000th of a big lab's data budget but audiobook reading style biased β€” yet curated could beat volume: the prosody branch learns from real F0/energy/voicing variation, and amortizing preprocessing once keeps training on a single RTX 5090 routine. Under 300 h unique: HiFiTTS and LibriTTS re-cut the same LibriVox audiobooks β€” counting shared recordings once, the unique corpus is <300 h β€” the frugality claim was already conservative.
Typical TTS training data includes: normalized text (numbers, abbreviations & punctuation expanded to how people say them) paired with the speech waveform, a speaker labels, optionally dialogue context (who said it, to whom, in what exchange), and increasingly natural-language labels describing the speech and its emotion β€” a "lively", "excited" or "annoyed" caption. SeedVox currently uses none of the labels: expression is supervised directly from the audio β€” the prosody codec converts audio features F0/E/V to a latent, so the "how" is measured, not captioned.
1:00

Architecture at a glance

Instead of one giant network juggling everything at once, SeedVox splits the job into dedicated components:

graph TD
    TXT["Input text"]

    subgraph CORE["SeedVox β€” generation path"]
        subgraph JEPA["JEPA World Model"]
            J["JEPA Prosody Planner (non-causal)
β†’ global prosody latent"] end subgraph AR["AR Backbone"] A["AR Phonetic Planner
text β†’ phonemes"] L["Linguistic Fusion
gated cross-attn folds phonemes into text"] B["AR Acoustic Decoder
unified text + prosody plan β†’ audio tokens"] end M["Mimi decoder
tokens β†’ 24 kHz waveform"] J -.->|"prosody plan (parallel, not fused)"| B A --> L --> B B -->|"audio tokens"| M M --> OUT["Speech audio"] end subgraph TRAIN["Training only"] T["Frozen Prosody Codec & Mimi encoder
(F0 / E / V β†’ latent) supervise JEPA"] end TXT --> A VOI["Reference audio (optional)"] -.->|"speaker identity"| B T -.->|"trains"| J style CORE fill:#13301f,stroke:#2f9e44 style JEPA fill:#0f2f29,stroke:#0ca678 style AR fill:#13301f,stroke:#2f9e44 style M fill:#11304a,stroke:#5aa9ff style TRAIN fill:#331f0c,stroke:#e8590c

Mimi β€” the audio codec behind it:

graph LR
    %% Inputs and Outputs
    InputWave["24kHz Audio Target"]
    OutputWave["24kHz Reconstructed Audio"]

    %% Neural Encoder Subgraph
    subgraph Neural_Encoder["Neural encoder"]
        direction LR
        ConvNet_Enc["ConvNet"]
        Feature_Dots_Enc["12.5 Hz Feature Maps"]
        Transformer_Enc["Transformer"]
        Enc_Out["Latent Representation"]

        ConvNet_Enc --> Feature_Dots_Enc --> Transformer_Enc --> Enc_Out
    end

    %% Split Quantization Subgraph
    subgraph Split_Quant["Split residual vector quantization & reconstruction"]
        direction LR
        Lin_VQ["Lin."]
        VQ_Module["VQ"]
        Lin_RVQ["Lin."]
        RVQ_Module["RVQ"]

        Quant_Sum(("βŠ•"))
        Lin_Out1["Lin."]
        Lin_Out2["Lin."]
        Decoder_Sum(("βŠ•"))

        Lin_VQ --> VQ_Module
        Lin_RVQ --> RVQ_Module

        %% Quantization streams
        VQ_Module --> Stream_VQ["Quantized Stream (Semantic)"]
        RVQ_Module --> Stream_RVQ1["Codebook Stream 1"]
        RVQ_Module --> Stream_RVQ2["Codebook Stream 2"]
        RVQ_Module --> Stream_RVQN["Codebook Stream N"]

        Stream_VQ --> Quant_Sum
        Stream_RVQ1 --> Quant_Sum
        Stream_RVQ2 --> Quant_Sum
        Stream_RVQN --> Quant_Sum

        Stream_VQ --> Lin_Out1
        Quant_Sum --> Lin_Out2

        Lin_Out1 --> Decoder_Sum
        Lin_Out2 --> Decoder_Sum
    end

    %% Neural Decoder Subgraph
    subgraph Neural_Decoder["Neural decoder"]
        direction LR
        Transformer_Dec["Transformer"]
        Feature_Dots_Dec["Feature Maps"]
        ConvNet_Dec["ConvNet"]

        Transformer_Dec --> Feature_Dots_Dec --> ConvNet_Dec
    end

    %% Distillation Loss Subgraph
    subgraph Distillation_Module["Distillation"]
        WavLM["WavLM"]
        Lin_Distill["Lin."]
        Cosine_Sim["Cosine similarity"]

        WavLM --> Cosine_Sim
        Lin_Distill --> Cosine_Sim
    end

    %% Adversarial Losses Subgraph
    Adv_Loss["Adversarial losses"]

    %% Direct Connections & Data Flow
    InputWave --> ConvNet_Enc
    Enc_Out --> Lin_VQ
    Enc_Out --> Lin_RVQ

    %% Distillation Connections
    InputWave -.-> WavLM
    Stream_VQ -.-> Lin_Distill

    %% Main Path to Decoder
    Decoder_Sum --> Transformer_Dec
    ConvNet_Dec --> OutputWave

    %% Adversarial Loss Connections
    InputWave -.- Adv_Loss
    OutputWave -.- Adv_Loss

    style Neural_Encoder fill:#11304a,stroke:#5aa9ff
    style Split_Quant fill:#11304a,stroke:#5aa9ff
    style Neural_Decoder fill:#11304a,stroke:#5aa9ff
    style Distillation_Module fill:#11304a,stroke:#5aa9ff
    style Adv_Loss fill:#11304a,stroke:#5aa9ff
  
1:15

Detailed pipeline β€” where the JEPA prosody and Phoneme planning hits the decoder

graph LR
    TXT["text"] --> CID["char ids"] --> TE["text encoder"] --> TF["text_feat"]
    TXT --> BID["BPE ids"] --> BF["BPE feats"] -->|"gated add"| TF

    REF["reference audio"] --> SE["speaker encoder"] --> SPK["spk latents"] --> SV["spk vec"]

    TF --> APP["AR phoneme predictor"] --> PF["phoneme feats"]
    PF --> FPHN["phoneme feats Β· FiLM (spk)"]
    SV -.->|"spk"| FPHN

    TF --> JEPA["prosody planner"]
    JEPA --> LAT["prosody latent
Β· exagg β†’ plan"] LAT --> FPRS["prosody plan Β· FiLM (spk)"] SV -.->|"spk"| FPRS FPHN --> LF["LinguisticFusion"] TF --> LF LF --> UT["unified text"] FPRS --> CTX["CONTEXT
[ spk vec Β· speaker-FiLM'd prosody Β· unified text ]"] SV --> CTX UT --> CTX subgraph TRAIN["teacher Β· train only"] PYIN["audio analysis β†’ F0 / E / V"] --> PC["frozen ProsodyCodec"] --> GT["GT latent"] end REF --> PYIN GT -.->|"cosine objective"| JEPA CTX -->|"cross-attn + speaker AdaLN"| DEC["β‘  AR layer
cross-attn over CONTEXT
(speaker AdaLN) β†’ hidden"] DEC --> DEP["β‘‘ depformer (NAR)
speaker + prosody AdaLN
on codebook prediction"] DEP --> RVQ["RVQ tokens"] --> MIMI["Mimi decoder"] --> WAV["waveform"] style CTX fill:#0f2f29,stroke:#0ca678,color:#e8eef7 style MIMI fill:#11304a,stroke:#5aa9ff style TRAIN fill:#331f0c,stroke:#e8590c style DEC fill:#13301f,stroke:#2f9e44 style DEP fill:#13301f,stroke:#2f9e44
1:00

Key design choices

JEPA prosody planning

Prosody is a global state of mind, not a token-level dice roll. The planner emits a learned latent that shapes the whole utterance before generation.

Latent, not features

Raw F0 / Energy / Voicing acoustic features only feed the frozen codec as a training target. Generation conditions exclusively on the learned latent.

Unified linguistic fusion

A gated cross-attention layer folds the AR phoneme planning into the text backbone β€” one grounded, unified representation for acoustic generation.

Dual-FiLM disentanglement

Two speaker-modulated FiLM adapters separate articulation from rhythm / emotion.

Intervenable control

Phonemes are planned explicitly β€” overwrite the phoneme string at runtime to fix pronunciations.

The painter β€” AR/NAR renderer

The plans become audio: a streaming AR transformer hands off to a parallel NAR depformer, rendering unified text + prosody plan into discrete audio tokens.

Efficient by construction

Gradient checkpointing, Fused AdamW, torch.compile β€” inference under 400 ms on an RTX 5090.

0:45

The linguistic structure β€” the "what"

The "what" is not just phonemes. It is a fused, multi-level representation β€” and the decoder aligns to it by cross-attention.

graph LR
    TXT(["text"])
    CID(["char ids"])
    TE(["text encoder"])
    BID(["BPE ids"])
    BF(["BPE feats"])
    GA(["βŠ• gated add"])
    TF(["text_feat"])
    APP(["AR phoneme predictor"])
    PF(["phoneme feats"])
    FPHN(["phoneme feats Β· FiLM (spk)"])
    SPK(["spk vec"])
    LF(["LinguisticFusion"])
    UT(["Unified text"])
    DEC(["decoder"])

    TXT --> CID --> TE --> TF
    TXT --> BID --> BF --> GA --> TF
    TF --> APP --> PF --> FPHN
    SPK -.->|"speaker"| FPHN
    FPHN -->|"gated cross-attn"| LF
    TF -.->|"text queries"| LF
    LF --> UT
    UT -.->|"monotonic cross-attn"| DEC
    classDef hl fill:#13301f,stroke:#2f9e44,color:#7dffb0;
    class TE,GA,APP,PF,FPHN,LF,UT hl
  
0:45

The JEPA World Model β€” the "how"

What is a JEPA? A Joint-Embedding Predictive Architecture predicts abstract latents, not raw signals β€” it is supervised by a similarity / energy objective (cosine), never by reconstruction.

Why a JEPA β€” vs. a pure AR LLM: an AR LLM must re-generate every token, so it guesses tone token-by-token and global intent drifts. A JEPA reads the whole sentence first (non-causal), spends no capacity on predictable acoustic detail, and returns a plan you can sample and edit.
  • Reads the whole text at once (non-causal) β€” predicts a global prosody latent spanning the utterance, before the decoder runs.
  • Naturally parallel β€” reads the whole text at once, no slow per-token roll.
  • Supervised by a frozen prosody codec trained from expressive speech (F0/E/V β†’ latent), via a cosine/planning objective.
  • Learned stochasticity β†’ sample plans for controlled expressivity.
  • Contrastive (0.2) + learned-std regularizers fight mean-collapse, keeping plans text-discriminative.
Result: a sampled plan is followed as faithfully as ground truth β€” the latent is informative, not decorative.

Latent, not features

F0/E/V feed only the frozen teacher. Generation conditions on the learned latent β€” (B, 32, dim), mean-pooled/upsampled to the frame rate.

jepa_layers=2 Β· jepa_heads=4 Β· plan (B, 32, dim) Β· teacher: frozen ProsodyCodec (F0/E/V β†’ latent)

Layout in context

Decoder context = [speaker, adapted prosody, fused text].

0:45

The "who" & the voice β€” speaker conditioning + acoustic decoder

Dual-FiLM disentanglement

FiLM = Feature-wise Linear Modulation β€” two independent FiLMAdapters turn the speaker latent into per-frame scale Ξ³ / shift Ξ², then rescale-and-shift a feature:

Modulated = LayerNorm(x)Β·Ξ³ + Ξ²

  • film_phn β€” phoneme embeddings β†’ articulation / vocal tract.
  • film_prs β€” prosody tokens β†’ rhythm / intonation.

Why two? One flat speaker vector would bundle articulation with prosody β†’ conditioning bleed: cloned voices get the wrong rhythm, and prosody edits disturb articulation. Independent adapters each learn a clean job β†’ precise cloning, no bleed.

AR Acoustic Decoder

  • Streaming transformer over n_q=16 codebooks.
  • Cross-attention to fused text + speaker AdaLN per layer.
  • Depformer (NAR streaming transformer) predicts residual RVQ codebooks, with speaker + prosody AdaLN.
  • Mimi codec encodes waveform β†’ token stream the decoder reconstructs.

dim=512 Β· layers=6 Β· depformer=10 Β· heads=8 Β· card=2048

1:15

Losses & tests β€” every term has a job

A four-term fusion loss keeps responsibilities split: the "who" is conditioned per layer in the AR decoder, the "what" stays grounded, and the "how" is plan-driven. Each guide is verified by a targeted test.

LossEnforces
loss_ar Γ—1.0Audio quality: cross-entropy over each enabled RVQ codebook β€” curriculum 4 β†’ 16 codebooks over 50k steps.
loss_ph Γ—0.5The "what": cross-entropy on the phoneme head (vocab 128) β€” pronunciation stays grounded even with fused text.
loss_jepa Γ—2.0The "how", three terms:
β‘  1βˆ’cos(plan, GT latent) β€” the plan must point like the true prosody (cosine sees shape, not volume);
β‘‘ contrastive gap 0.2 β€” the plan must win over every other text's latent in the batch by a margin β‡’ no mean-collapse, text-discriminative plans;
β‘’ learned-std 0.05 β€” a light pull keeping the sampler's learned scale near its init β‡’ expressive variety at generation, no explosion.
loss_cycle Γ—0.5Plan-follow: cos(prosody of the generated audio, the plan) β€” the decoder is forced to use the latent, not read text. Anchor term 0.5 keeps the readout honest.

Duration auxiliary (0.08) is defined but not used for alignment β€” alignment is attention-based (MonotonicAttention).

Guards in the repo

Smoke train

test_model_smoke β€” ExplicitPlannerModel forward/backward on the real config β€” catches dead configs early.

Mimi fidelity

test_mimi_fidelity β€” token roundtrip, partial codebooks (1/2/4/8), unquantized-latent path.

Prosody control

test_pitch_sweep / pitch_shift β€” sweeping F0 scale 0.0β†’2.0 must move predicted pitch: the intervention path really works.

G2P / phonemes

test_correctness / phonetic_consistency β€” vocab 128, SOS/EOS framing, g2p backend.

Eval every pass

During evals the plan-follow trio gen_ar Β· plan_cos Β· follow_cos is scored β€” the numbers on the next slide.

Model load / imports

test_model_load placeholder until public checkpoints ship.

Intelligibility guard (WER): the demo sample on the Listen slide (docs/seedvox_demo.mp3) is Whisper-transcribed and scored against its reference text — ~6% WER (14/222 words). The residual is Whisper, not the TTS: every edit is the recognizer misreading out-of-vocabulary proper nouns (SeedVox→seedbox, JEPA→jeppo, autoregressive→author aggressive) plus one TTS micro-stutter — two ASR tiers (base / small) agree, so the spoken words themselves are intact.
1:15

Results β€” the plan is followed, not ignored

Measured across 200 evaluation batches (2,000 sentences). One reference speaker, generated on a single RTX 5090.

How to read the scores

MetricValueWhat it means
ar1.070Quality with ground-truth prosody β€” the best-case ceiling.
gen_ar1.070Quality with a JEPA-sampled plan β€” same as the ceiling.
plan_cos0.237Cosine distance β€” sampled plan vs. true prosody: how well the planner predicted the real prosody. Well-aligned, with room for variation.
follow_cos0.317Cosine distance β€” rendered audio's prosody vs. the plan: how faithfully the decoder followed it. Close enough that quality is unchanged.
The key result: gen_ar == ar (both 1.070). If the decoder ignored the plan and just read text, gen_ar would be worse. It isn't β€” no text-only shortcut collapse. The prosody latent is genuinely informative.
1:15

Lessons learned β€” plugging JEPA latents into an AR decoder

Feeding a global, non-causal prosody latent into a sequential, causal token decoder is the hardest integration in SeedVox. Three failure modes, then what fixed each.

1 Β· Text-only shortcut collapse

Conditioning on the predicted plan (a deterministic function of text) makes the latent redundant β€” the decoder quietly ignores it.

decoder_prosody_source='pred' β‡’ ignored latent

2 Β· The AR head barely absorbs it

A probe of the AR decoder's hidden state showed it barely carries prosody β€” passing the latent only via AR context leaks nothing downstream.

probe β‡’ hidden state β‰ˆ prosody-lean

3 Β· Planner mean-collapse

Without extra pressure, predicted plans hug the average direction β€” informative (global) but not discriminative across texts.

plans β†’ mean Β· "decorative" latent

What finally worked

FixMechanism
GT / mix teacher-forcingCondition the decoder on GT prosody half the time (decoder_prosody_source='mix', decoder_gt_prob=0.5) so it learns latent→audio; sample a plan the rest to keep inference in-distribution.
Contrastive + stdThe regularizers from the JEPA intro β€” a matched-vs-mismatched contrastive gap (0.2) and a learned-std pull (0.05) β€” cure failure 3: measured text-discriminative, not average.
Direct depformer AdaLNInject mean-pooled prosody straight into the NAR codebook predictor (use_dep_prosody_cond) β€” bypass the prosody-lean AR hidden path.
Exagg dial (inference)Interpolate null ↔ sampled plan around the null latent β€” expressiveness control without retraining.
Cycle lossCompare the generated prosody against the plan it was conditioned on β€” the direct measurement that plans are followed.
0:45

Frugal & controllable by design

deterministic --seed β†’ reproducible synthesis.
latent exploration --variant_axis pros | speaker β†’ walk the latent space.
LoRA fine-tuning --lora_checkpoint β†’ new voices with lightweight low-rank adapters.
CFG --cfg_scale β†’ reference fidelity: full-context decode vs. text-blind, prosody-grounded decode.
temperature --phoneme/--prosody/--acoustic_temperature β†’ control each stage.
efficiency gradient checkpointing Β· Fused AdamW Β· torch.compile Β· <400 ms inference.

Hardware democratization

  • Trains & runs on a single RTX 5090.
  • Fully local & offline β€” your data, your process, your output.
  • Transparent codebase: Transformers, neural codecs (Mimi), JEPA planning in one clean sandbox.
  • Zero-cost iteration β€” experiment as much as you want, no usage credits.
Educational thesis: SOTA-quality speech on a gaming laptop makes frontier voice technology approachable, sovereign, and hackable for students and researchers.
0:45

Listen

One reference speaker β€” generated on a single RTX 5090.

10-sentence demo

A narrative announcing SeedVox's architecture, JEPA prosody planning, and key results.

All prosody is sampled from the JEPA world model β€” no manual tuning.

A note on the reference voice

The reference voice and the training data come from LJ Speech β€” a single-speaker audiobook corpus: read speech, monotone, low expressiveness, no conversational dynamics. Expressive conversational reference and training data will sound considerably more natural and dynamic.

0:30

Roadmap

done Hybrid AR-JEPA baseline

Autoregressive discrete-transformer decoder + JEPA World Model + frozen prosody teacher; Unified Linguistic Fusion; dual-FiLM speaker conditioning; plan-follow verified (gen_ar == ar).

next Β· data Expressive conversational corpora

Longer-form context, richer prosody, real dialog structure β€” paired with natural-language emotion and style tags embedded in the text to seed the style head and let the planner learn from richer supervision signals. We expect such datasets to become available as TTS research shifts toward expressive, multi-speaker dialogue.

beyond Β· explored Continuous-latent acoustic decoder

Graft a flow-matching continuous-latent acoustic decoder over Mimi latents so the prosody signal lands without a codebook-quantization bottleneck.

beyond Β· unexplored Mid- & post-training finetuning

DPO / GRPO-style preference finetuning β€” mid-training or post-training on human/AI preferences β€” has not been explored yet: we've worked with a very limited data budget. LoRA adaptation is already supported for fast, lightweight voice adaptation.

beyond Streamability & full-duplex channel

Chunk-wise streaming inference and a full-duplex spoken channel β€” listen and speak simultaneously, enabling real-time conversational interaction.

0:30

Takeaways

What you say, how you say it, who says it β€” planned before it is spoken.
github.com/v7aresky/seedvox Β· https://v7aresky.github.io/seedvox/ β€” listen, build, and reach out.