Run this model with HF Jobs
Run hybridcodec/hybridcodec_scratch_25hz on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/hybridcodec/hybridcodec_scratch_25hz. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/hybridcodec/hybridcodec_scratch_25hz on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use hybridcodec/hybridcodec_scratch_25hz with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- speechbrain
How to use hybridcodec/hybridcodec_scratch_25hz with speechbrain:
# interface not specified in config.json
- Notebooks
- Google Colab
- Kaggle
Add HybridCodec model card
Browse files1234567891011121314151617181920212223242526272829303132333435363738394041424344454647---library_name: speechbraintags: - hybridcodec - speech - audio - codec - speechbrain---
# hybridcodec_scratch_25hz
HybridCodec is a speech codec that represents audio with a discrete semanticstream and a continuous residual stream. This repository contains the**Scratch** quantizer configuration, operating at a semantic token rate of**25 Hz**. The codec uses the pretrained FocalCodec 50 Hz encoder andvocoder with the matching HybridCodec quantizer weights.
## Intended use
Encode mono speech audio into HybridCodec semantic and residual streams, anddecode those streams back into audio. The model configuration expects audio at16 kHz. Use the same repository for encoding and decoding.
## Files
- `hyperparams.yaml`: model architecture and inference configuration.- `weights/`: quantizer parameters in safetensors format.
## Inference on Fir
With the `hybridcodec` package installed and Hugging Face access configured:
```bashpython ~/models/hf/reencode_hybridcodec.py \ --model hybridcodec/hybridcodec_scratch_25hz \ --input sample.wav \ --output sample_reencoded.wav```
The command resamples input audio to 16 kHz when needed, converts it to mono,encodes and decodes it, and writes the reconstructed WAV file.
## Paper
See [HybridCodec: Modeling Discrete and Continuous Representations forEfficient Speech Language Models](https://arxiv.org/abs/2606.27627).README.mdAdded+47