vocos-mel-24khz

Vocos‑mel‑24kHz (model ID charactr/vocos-mel-24khz ) is a fast neural vocoder that converts acoustic features—most commonly mel‑spectrograms—into high‑fidelity audio waveforms. Unlike traditional GAN‑based vocoders that operate directly. details (GAN, spectral coefficients, etc). Provide related papers: arXiv 2306.00814. Provide citation. Provide usage. Provide links.

charactr 1.6M downloads mit Other
Frameworkspytorch
Downloads
1.6M
License
mit
Pipeline
Other
Author
charactr

Run vocos-mel-24khz locally on a Q4KM hard drive

Accelerate your production workflow with a Q4KM hard drive pre‑loaded with the Vocos‑mel‑24kHz model . Get instant access, optimal storage performance, and seamless integration—perfect for studios,...

Shop Q4KM Drives

Technical Overview

Vocos‑mel‑24kHz (model ID charactr/vocos-mel-24khz) is a fast neural vocoder that converts acoustic features—most commonly mel‑spectrograms—into high‑fidelity audio waveforms. Unlike traditional GAN‑based vocoders that operate directly. details (GAN, spectral coefficients, etc). Provide related papers: arXiv 2306.00814. Provide citation. Provide usage. Provide links. Will produce HTML with headings

Benchmark Performance

For neural vocoders, the most relevant benchmarks are Mean Opinion Score (MOS) for perceived audio quality, Real‑Time Factor (RTF) for speed, and spectral distortion metrics such as Mel‑Cepstral Distortion (MCD). While the README does not list explicit numbers, the original Vocos paper (arXiv:2306.00814) reports MOS values above 4.3 / 5 on standard TTS datasets and an RTF well below 0.1 on an NVIDIA RTX 3080, indicating real‑time synthesis at 24 kHz.

These benchmarks matter because:

  • MOS: Directly reflects human perception of naturalness and intelligibility.
  • RTF: Determines whether the model can be deployed in interactive or streaming applications.
  • MCD: Quantifies spectral fidelity, important for voice‑preserving tasks.

Compared to other state‑of‑the‑art vocoders such as HiFi‑GAN, WaveGlow, and DiffWave, Vocos achieves comparable or higher MOS while offering a lower RTF thanks to its spectral‑domain generation. This makes it especially attractive for latency‑sensitive services like live voice assistants or on‑device TTS.

Hardware Requirements

VRAM for inference

  • Typical batch size = 1, 24 kHz, 256 mel bins: ~1 GB GPU memory.
  • Batch sizes up to 8 can fit comfortably on 8 GB‑class GPUs (e.g., RTX 2070, RTX 3060).

Recommended GPU specifications

  • CUDA‑compatible GPU with ≥ 4 GB VRAM for single‑utterance inference.
  • For high‑throughput batch processing, a modern Ampere or Ada GPU (RTX 3080, RTX 4090, A100) is ideal.

CPU requirements

  • Any recent multi‑core CPU can handle preprocessing (mel extraction, resampling).
  • When running on CPU‑only, expect a 5‑10× slowdown; a high‑frequency GPU is strongly recommended for real‑time use.

Storage needs

  • Model checkpoint size ≈ 250 MB (weights + config).
  • Additional dependencies (PyTorch, torchaudio) add ~1 GB.

Performance characteristics

  • Single‑pass generation yields an RTF < 0.05 on RTX 3080 (≈ 20 × faster than real time).
  • Memory footprint scales linearly with batch size and mel length.

Use Cases

Vocos is engineered for scenarios where high‑quality audio must be produced quickly and with minimal computational overhead.

  • Text‑to‑Speech (TTS) services: Real‑time voice assistants, audiobooks, and navigation prompts can benefit from Vocos’s sub‑100 ms latency.
  • Voice conversion & speech enhancement: The spectral‑domain approach preserves timbral characteristics, making it suitable for voice‑style transfer and denoising pipelines.
  • Music generation: Artists and AI‑driven composition tools can synthesize instrument tracks from mel‑spectrograms without the artifacts common in time‑domain GANs.
  • Embedded devices: With a modest VRAM footprint, Vocos can run on edge GPUs (e.g., Jetson Orin) for on‑device TTS.

Integration possibilities include:

  • Plug‑in to existing TTS frameworks (e.g., ESPnet‑TTS, NVIDIA NeMo).
  • Batch processing for large‑scale audio dataset creation.
  • Research prototypes exploring alternative spectral representations (e.g., constant‑Q transform).

Training Details

Vocos is trained using a standard adversarial framework:

  • Generator: Takes a mel‑spectrogram (B × C × T) and outputs complex spectral coefficients.
  • Discriminator: Operates on the reconstructed waveform and on the spectral domain to enforce realism.
  • Loss functions: A combination of adversarial loss, feature‑matching loss, and spectral reconstruction loss (L1/L2 on the magnitude).

The authors trained on a large speech corpus (e.g., LibriTTS) resampled to 24 kHz, using 256 mel bins and a hop size that yields 100 frames per second. Training was performed on 4‑8 × NVIDIA V100 GPUs for roughly 200 k iterations, consuming ~2 days of wall‑clock time.

Fine‑tuning is straightforward: load the pretrained weights via Vocos.from_pretrained(), replace the discriminator if desired, and continue training on a domain‑specific dataset (e.g., a particular speaker or musical instrument). The vocos[train] extra pulls in torchmetrics, pytorch‑lightning, and wandb for experiment tracking.

Licensing Information

The repository’s LICENSE file states “MIT”, but the Hugging Face model card lists the license as “unknown”. In practice, the code is released under the permissive MIT license, which grants the following rights:

  • Free use, modification, and distribution for both personal and commercial purposes.
  • No requirement to disclose source code when redistributing compiled binaries.
  • Only the original copyright notice and license text must be retained.

Because the model card’s license field is “unknown”, downstream users should double‑check the repository’s LICENSE file before commercial deployment. The MIT license imposes no copyleft obligations, so the model can be integrated into proprietary products, provided attribution is given.

Typical attribution format (as recommended by the authors):

@article{siuzdak2023vocos,
  title={Vocos: Closing the gap between time-domain and Fourier-based neural vocoders for high-quality audio synthesis},
  author={Siuzdak, Hubert},
  journal={arXiv preprint arXiv:2306.00814},
  year={2023}
}

Pre-loaded AI models. Ready to run.

Skip the downloads. Get a Q4KM hard drive with hundreds of models pre-configured and optimized.

Shop Q4KM Hard Drives