Downloads · 30 days
0
ragtag-ai/neucodec-decoder
neucodec-decoder is a text-to-speech model from ragtag-ai. Use it when you need text read aloud. It is set up for safetensors. The card lists the license as apache-2.0.
These are the NeuCodec decoder weights, extracted to safetensors for use with a pure-Rust CPU decoder (ndarray + rustfft) — no native ONNX runtime, no PyTorch at inference.
Downloads · 30 days
0
Access
Public
Updated Jun 9, 2026
Repo size
881 MB
Likes
0
Public
Click a slice to open those files.
.safetensors881 MB · 100%
From the Hugging Face model README
These are the NeuCodec decoder weights, extracted to safetensors for use with a pure-Rust CPU decoder (ndarray + rustfft) — no native ONNX runtime, no PyTorch at inference.
The decoder converts the discrete speech codes produced by the NeuTTS backbone back into a 24 kHz audio waveform, completing the zero-shot voice cloning pipeline.
This artifact exists to enable voice cloning in Ragtag, a local-first desktop AI application, under strict architectural constraints: no native ONNX runtime (no onnxruntime / ort), no GPL dependencies. The companion encoder is ragtag-ai/neucodec-encoder-rten.
safetensors (extracted from the original pytorch_model.bin)Upstream distributes the decoder only as ONNX (neuphonic/neucodec-onnx-decoder); the pure-Rust decoder loads safetensors. These weights were extracted from the original PyTorch model:
pytorch_model.bin from neuphonic/neucodecsafetensors (script: convert_weights.py, or the dependency-free convert_weights_nopytorch.py, in the Ragtag repo).No weights are modified — this is a format conversion only.
The pure-Rust decoder was verified against the reference implementations:
NeuCodec is a generative (vocoder) decoder, so two valid implementations produce intelligible but not phase-identical waveforms; intelligibility, not waveform correlation, is the meaningful check.
This is not a standalone TTS system. It is the decoder stage of Ragtag's clone pipeline, used together with:
The decoder runs on CPU.
Licensed under Apache License 2.0, derived from the original NeuCodec which is also Apache 2.0 licensed. Please retain attribution to the original authors:
NeuCodec by Neuphonic
https://huggingface.co/neuphonic/neucodec
Licensed under Apache 2.0
The safetensors extraction is contributed by Ragtag / Captivated Ltd, also under Apache 2.0.
@misc{neucodec2024,
author = {Neuphonic},
title = {NeuCodec},
year = {2024},
publisher = {Hugging Face},
url = {https://huggingface.co/neuphonic/neucodec}
}
@misc{neucodec-decoder-safetensors,
author = {Mallett, Leon},
title = {NeuCodec Decoder (safetensors weights)},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/ragtag-ai/neucodec-decoder}
}