alt.freeweights.speech / chatterbox-ONNX
From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.speechSubject:

chatterbox-ONNX

Date: 2026-11-15Commit: 3cab09aSigned: 2DC28CC7B26A283B ✓

Text to speech model. Onnx weights, 4.98 GB in all. Published by onnx-community under MIT.

speech4.98GBchatterbox-ONNXonnxpermissive
FactsParamsnot statedSize4.98 GBFormatsonnxTasktext to speechLicenseMITFrom sourcepermissive
$ fw get onnx-community/chatterbox-ONNX
# manifest sha256 ceb0918bf457… · 4.98 GB · 22 files
$ fw verify ./chatterbox-ONNX onnx-community/chatterbox-ONNX
From sourceHosted (signed)onnx-community/chatterbox-ONNXLast check: 2026-11-15 05:01 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Quantized of chatterbox.

Works with

Convert with

Scan with

Overview

Size
4.98 GB
Weights
61.7 MB (smallest of 7 ONNX variants)
Parameters
not stated
Formats
onnx
Task
text to speech
License
MIT (permissive)
Files
22, each with a sha256
Publisher
onnx-community
Added
2026-11-15
Section
alt.freeweights.speech
Lineage

Original release from the publisher.

Base model: ResembleAI/chatterbox

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 05:01 UTCpassed

Model card

From the publisher at commit 3cab09a. Shown as plain text with links; images open at the publisher.

Image: cb-big2

Chatterbox TTS#

Listen to Demo Samples Open in HF Spaces Insight on Podos

Image: resemble-logo-horizontal

Chatterbox Resemble AI's production-grade open source TTS model. Chatterbox supports English out of the box. Licensed under MIT, Chatterbox has been benchmarked against leading closed-source systems like ElevenLabs, and is consistently preferred in side-by-side evaluations.

Whether you're working on memes, videos, games, or AI agents, Chatterbox brings your content to life. It's also the first open source TTS model to support emotion exaggeration control, a powerful feature that makes your voices stand out.

Chatterbox is provided in an exported ONNX format, enabling fast and portable inference with ONNX Runtime across platforms.

Key Details#

  • SoTA zeroshot English TTS
  • 0.5B Llama backbone
  • Unique exaggeration/intensity control
  • Ultra-stable with alignment-informed inference
  • Trained on 0.5M hours of cleaned data
  • Watermarked outputs (optional)
  • Easy voice conversion script using onnxruntime
  • Outperforms ElevenLabs

Tips#

  • General Use (TTS and Voice Agents):
    • The default settings (exaggeration=0.5, cfg=0.5) work well for most prompts.
  • Expressive or Dramatic Speech:
    • Try increase exaggeration to around 0.7 or higher.
    • Higher exaggeration tends to speed up speech;

Usage#

Link to GitHub ONNX Export and Inference script

# !pip install --upgrade onnxruntime==1.22.1 huggingface_hub==0.34.4 transformers==4.46.3 numpy==2.2.6 tqdm==4.67.1 librosa==0.11.0 soundfile==0.13.1 resemble-perth==1.0.1

import onnxruntime

from huggingface_hub import hf_hub_download
from transformers import AutoTokenizer

import numpy as np
from tqdm import tqdm
import librosa
import soundfile as sf

S3GEN_SR = 24000
START_SPEECH_TOKEN = 6561
STOP_SPEECH_TOKEN = 6562


class RepetitionPenaltyLogitsProcessor:
    def __init__(self, penalty: float):
        if not isinstance(penalty, float) or not (penalty > 0):
            raise ValueError(f"`penalty` must be a strictly positive float, but is {penalty}")
        self.penalty = penalty

    def __call__(self, input_ids: np.ndarray, scores: np.ndarray) -> np.ndarray:
        score = np.take_along_axis(scores, input_ids, axis=1)
        score = np.where(score < 0, score * self.penalty, score / self.penalty)
        scores_processed = scores.copy()
        np.put_along_axis(scores_processed, input_ids, score, axis=1)
        return scores_processed


def run_inference(
    text="The Lord of the Rings is the greatest work of literature.", 
    target_voice_path=None, 
    max_new_tokens = 256,
    exaggeration=0.5, 
    output_dir="converted", 
    output_file_name="output.wav",
    apply_watermark=True,
):

    model_id = "onnx-community/chatterbox-onnx"
    if not target_voice_path:
        target_voice_path = hf_hub_download(repo_id=model_id, filename="default_voice.wav", local_dir=output_dir)

    ## Load model
    speech_encoder_path = hf_hub_download(repo_id=model_id, filename="speech_encoder.onnx", local_dir=output_dir, subfolder='onnx')
    hf_hub_download(repo_id=model_id, filename="speech_encoder.onnx_data", local_dir=output_dir, subfolder='onnx')
    embed_tokens_path = hf_hub_download(repo_id=model_id, filename="embed_tokens.onnx", local_dir=output_dir, subfolder='onnx')
    hf_hub_download(repo_id=model_id, filename="embed_tokens.onnx_data", local_dir=output_dir, subfolder='onnx')
    conditional_decoder_path = hf_hub_download(repo_id=model_id, filename="conditional_decoder.onnx", local_dir=output_dir, subfolder='onnx')
    hf_hub_download(repo_id=model_id, filename="conditional_decoder.onnx_data", local_dir=output_dir, subfolder='onnx')
    language_model_path = hf_hub_download(repo_id=model_id, filename="language_model.onnx", local_dir=output_dir, subfolder='onnx')
    hf_hub_download(repo_id=model_id, filename="language_model.onnx_data", local_dir=output_dir, subfolder='onnx')

    # # Start inferense sessions
    speech_encoder_session = onnxruntime.InferenceSession(speech_encoder_path)
    embed_tokens_session = onnxruntime.InferenceSession(embed_tokens_path)
    llama_with_past_session = onnxruntime.InferenceSession(language_model_path)
    cond_decoder_session = onnxruntime.InferenceSession(conditional_decoder_path)

    def execute_text_to_audio_inference(text):
        print("Start inference script...")

        audio_values, _ = librosa.load(target_voice_path, sr=S3GEN_SR)
        audio_values = audio_values[np.newaxis, :].astype(np.float32)

        ## Prepare input
        tokenizer = AutoTokenizer.from_pretrained(model_id)
        input_ids = tokenizer(text, return_tensors="np")["input_ids"].astype(np.int64)

        position_ids = np.where(
            input_ids >= START_SPEECH_TOKEN,
            0,
            np.arange(input_ids.shape[1])[np.newaxis, :] - 1
        )

        ort_embed_tokens_inputs = {
            "input_ids": input_ids,
            "position_ids": position_ids,
            "exaggeration": np.array([exaggeration], dtype=np.float32)
        }

        ## Instantiate the logits processors.
        repetition_penalty = 1.2
        repetition_penalty_processor = RepetitionPenaltyLogitsProcessor(penalty=repetition_penalty)

        num_hidden_layers = 30
        num_key_value_heads = 16
        head_dim = 64

        generate_tokens = np.array([[START_SPEECH_TOKEN]], dtype=np.long)

        # ---- Generation Loop using kv_cache ----
        for i in tqdm(range(max_new_tokens), desc="Sampling", dynamic_ncols=True):

            inputs_embeds = embed_tokens_session.run(None, ort_embed_tokens_inputs)[0]
            if i == 0:
                ort_speech_encoder_input = {
                    "audio_values": audio_values,
                }
                cond_emb, prompt_token, ref_x_vector, prompt_feat = speech_encoder_session.run(None, ort_speech_encoder_input)
                inputs_embeds = np.concatenate((cond_emb, inputs_embeds), axis=1)

                ## Prepare llm inputs
                batch_size, seq_len, _ = inputs_embeds.shape
                past_key_values = {
                    f"past_key_values.{layer}.{kv}": np.zeros([batch_size, num_key_value_heads, 0, head_dim], dtype=np.float32)
                    for layer in range(num_hidden_layers)
                    for kv in ("key", "value")
                }
                attention_mask = np.ones((batch_size, seq_len), dtype=np.int64)

            logits, *present_key_values = llama_with_past_session.run(None, dict(
                inputs_embeds=inputs_embeds,
                attention_mask=attention_mask,
                **past_key_values,
            ))

            logits = logits[:, -1, :]
            next_token_logits = repetition_penalty_processor(generate_tokens, logits)

            next_token = np.argmax(next_token_logits, axis=-1, keepdims=True).astype(np.int64)
            generate_tokens = np.concatenate((generate_tokens, next_token), axis=-1)
            if (next_token.flatten() == STOP_SPEECH_TOKEN).all():
                break

            # Get embedding for the new token.
            position_ids = np.full(
                (input_ids.shape[0], 1),
                i + 1,
                dtype=np.int64,
            )
            ort_embed_tokens_inputs["input_ids"] = next_token
            ort_embed_tokens_inputs["position_ids"] = position_ids

            ## Update values for next generation loop
            attention_mask = np.concatenate([attention_mask, np.ones((batch_size, 1), dtype=np.int64)], axis=1)
            for j, key in enumerate(past_key_values):
                past_key_values[key] = present_key_values[j]

        speech_tokens = generate_tokens[:, 1:-1]
        speech_tokens = np.concatenate([prompt_token, speech_tokens], axis=1)
        return speech_tokens, ref_x_vector, prompt_feat

    speech_tokens, speaker_embeddings, speaker_features = execute_text_to_audio_inference(text)
    cond_incoder_input = {
        "speech_tokens": speech_tokens,
        "speaker_embeddings": speaker_embeddings,
        "speaker_features": speaker_features,
    }
    wav = cond_decoder_session.run(None, cond_incoder_input)[0]
    wav = np.squeeze(wav, axis=0)

    # Optional: Apply watermark
    if apply_watermark:
        import perth
        watermarker = perth.PerthImplicitWatermarker()
        wav = watermarker.apply_watermark(wav, sample_rate=S3GEN_SR)

    sf.write(output_file_name, wav, S3GEN_SR)
    print(f"{output_file_name} was successfully saved")

if __name__ == "__main__":
    run_inference(
        text="Ezreal and Jinx teamed up with Ahri, Yasuo, and Teemo to take down the enemy's Nexus in an epic late-game pentakill.",
        exaggeration=0.5,
        output_file_name="output.wav",
        apply_watermark=False,
    )

Acknowledgements#

Built-in PerTh Watermarking for Responsible AI#

Every audio file generated by Chatterbox includes Resemble AI's Perth (Perceptual Threshold) Watermarker - imperceptible neural watermarks that survive MP3 compression, audio editing, and common manipulations while maintaining nearly 100% detection accuracy.

Disclaimer#

Don't use this model to do bad things. Prompts are sourced from freely available data on the internet.

Files

22 files · 4.98 GBWeights 61.7 MB (smallest of 7 ONNX variants). Sizes and sha256 from the signed manifest.
Show all 22 files with their sha256
FileSizesha256
.gitattributes2.15 KBb5e7545c92295965386f32c9788e85c9d6ecd8064e32578f32e8ccd01972a49b
README.md10.7 KB3d1512c5caa3c5f32b68b26b7075b6c2f0f66fbe9328ed2f82668a61e8076211
config.json1.10 KBa7d8518edd1cf6346e4d2be33201747ea4c476718db756f42e6959e4828f4955
default_voice.wav714 KB3ebc531cdaba358a327099c1c4f0448026719957bcf4d8e9868767f227e02f4e
generation_config.json93 B1b6fbb953861089ebe7da64df46eeef570d53f47a44b7cc1b4d543669fc9cd50
onnx/conditional_decoder.onnx6.35 MB1656d0d31332bae1854839959a3139300ebb67c178651dfa3f8c5fbfa5351351
onnx/conditional_decoder.onnx_data534 MB51d58345a272747665ec9d5bb61e01835258a940e321a288582ac4c18cf01b5a
onnx/embed_tokens.onnx13.3 KB160722ec14789f616abdb1e31916cbbf9223c03fde0ab546d64ca74fb72e430b
onnx/embed_tokens.onnx_data61.6 MB898c563c3a5ca1b9ea10ce89b0cdcf252b0bb5ab460dfc4eadea003b56e5d2ee
onnx/language_model.onnx171 KB861a34585605e8ad671051788afc495dcbeaee833a41523a1b33aded9c3babc7
onnx/language_model.onnx_data2.08 GBefe9a1173c40d50bc651cb96ebff9f23d6f20d5b3a11b0685510e3a3facdbcf1
onnx/language_model_fp16.onnx173 KB0c36a5bbbc2a4ed8c345033896612cd320fd0971a0f5e6447ab4cdd2d7f22e36
onnx/language_model_fp16.onnx_data1.04 GB6d1b751ce1af740bbfa6cde9dc7d359afedba4b6de5a875b6fd199131216f16d
onnx/language_model_q4.onnx228 KB7f8cdca83b2493536cbf3acf421199808a3d68736f55f4eabd20ef8a99da4313
onnx/language_model_q4.onnx_data354 MB5203d1e83c159316f9923c5c83759f6a34f87be1322ce4ad0facd9fc4aef4790
onnx/language_model_q4f16.onnx229 KB3b78e9235be5e2e2a811e482399155cb30415f6d87c98c21d12bf48843fc928f
onnx/language_model_q4f16.onnx_data305 MB2480da95471e4cd41a6b1876686e65e8a594c82459f2e5d6fd7592a5bad4e6da
onnx/speech_encoder.onnx1.18 MB8f1c8a0f89b77bf9cd5dd8f2e034eb2c79dc00fe70d41196b28c257643b00ccb
onnx/speech_encoder.onnx_data591 MB04431dcef6325c54b02de2219845888b464bcd1f1ac2f8839c2fecd1ed2ef294
preprocessor_config.json130 B1c320b2eea5f45678d17d891d51c38467775091dbf26a074635ba5e98ede5950
tokenizer.json28.5 KBecddf6aaae85e271610a2743409f7e447886957d0b0836687c1eaec5ccac2891
tokenizer_config.json244 Bb35967f93e30313d05fc9d520721ca9f671aaa5b3edbb03059aed3ff68b4c4c0
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
3cab09af38 pinned now2026-11-15 05:01 UTC22 files · 4.98 GB

Use it

$ fw get onnx-community/chatterbox-ONNX
# manifest sha256 ceb0918bf457… · 4.98 GB · 22 files
$ fw verify ./chatterbox-ONNX onnx-community/chatterbox-ONNX
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/onnx-community/chatterbox-ONNX.json --dir ./chatterbox-ONNX $ python3 fw.py verify ./chatterbox-ONNX ./onnx-community__chatterbox-ONNX.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/chatterbox-ONNX --revision 3cab09af388d3f02bba43443fce88c1f4525ac43 --local-dir ./chatterbox-ONNX

License

Name
MIT License
Id
MIT
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
3d1512c5caa3c5f32b68b26b7075b6c2f0f66fbe9328ed2f82668a61e8076211
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.speechSubject: chatterbox-ONNXDate: 2026-11-15Commit: 3cab09aSigned: 2DC28CC7B26A283B ✓
Upstream
onnx-community/chatterbox-ONNX
Pinned commit
3cab09af388d3f02bba43443fce88c1f4525ac43
Manifest
chatterbox-ONNX.json · .minisig
Manifest sha256
ceb0918bf45732cb0c42ef992098365acb2e2a93c85d7e19a260464b70a4cf8f
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 05:01 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/onnx-community/chatterbox-ONNX.json $ curl -O https://freeweights.allternit.com/manifests/onnx-community/chatterbox-ONNX.json.minisig $ minisign -Vm chatterbox-ONNX.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

ResembleAI/chatterbox · this model is a quantization of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/chatterbox-ONNX
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. chatterbox-ONNX.json. Provenance. Takedown history: none.
From: MIT <huggingface.co/MIT>Subject: ast-finetuned-audioset-10-10-0.4593
From: onnx-community <huggingface.co/onnx-community>Subject: ast-finetuned-audioset-10-10-0.4593-ONNX
From: Edge0 <huggingface.co/Edge0>Subject: Audio8-TTS-Preview-0.6b
From: Edge0 <huggingface.co/Edge0>Subject: Audio8-TTS-Realistic-Air
From: facebook <huggingface.co/facebook>Subject: audiobox-aesthetics
From: mlx-community <huggingface.co/mlx-community>Subject: chatterbox-4bit