Liquid AI Releases LiquidCodec, a 74M-Parameter Streaming Audio Codec

In one sentence

Liquid AI has released LiquidCodec, a 74M-parameter streaming audio codec with weights on Hugging Face that delivers fast single-thread CPU encoding and strong speech quality.

Key points

  • The ~74M-parameter model operates at 24 kHz and uses grouped finite scalar quantization (GFSQ) to compress audio into 12 independent codebooks.
  • On a single Apple M4 Max CPU thread, LiquidCodec achieves about 361x real-time encoding and 87x real-time decoding.
  • It outperforms Mimi, NanoCodec, and X-Codec 2 on ViSQOL, mel distance, and TTS UTMOSv2 across all 8 test sets.
  • Developers can load weights via Hugging Face Transformers or use GGUF builds like Q4_0 for llama.cpp edge deployment.

In depth

An AI-written overview of the original article, not the article itself.

Liquid AI has released LiquidCodec, a roughly 74-million-parameter streaming audio codec behind its LFM3-Audio-2B and LFM3-Omni-2B models, with weights on Hugging Face. Replacing Kyutai’s Mimi, it is designed to produce easy-to-predict speech tokens and convert them back into audio quickly.

Architecture and Training

LiquidCodec compresses 24 kHz audio into 12.5 Hz frames, turning each 80 ms frame into 12 discrete tokens. Its encoder and decoder use LFM3 blocks with a causal encoder for streaming, while grouped finite scalar quantization (GFSQ) enables parallel prediction across all 12 codebooks and the decoder predicts spectral coefficients directly.

According to Liquid AI, training ran in two stages: 264,000 hours of speech across 107 languages, followed by 55,000 hours of full-band speech with adversarial critics to remove metallic artifacts, plus a final decoder-only quantization-aware training (QAT) step for edge inference.

Speed and Quality Benchmarks

In self-reported tests on a single Apple M4 Max CPU thread, LiquidCodec achieved about 361x real-time encoding and 87x decoding, with an encode real-time factor roughly 13 times lower than Mimi.

Across 8 test sets, LiquidCodec outperformed X-Codec 2, NanoCodec, and Mimi in ViSQOL, mel distance, and text-to-speech UTMOSv2, though NanoCodec still scored higher on PESQ (WB) in 7 of 8 sets.

Deployment and Edge Support

Developers can load LiquidCodec via Hugging Face Transformers with native streaming cache support. For edge devices, Liquid AI provides Q4_0, Q4_K_M, and Q8_0 GGUF builds for llama.cpp, where Q4_0 with QAT shrinks the decoder footprint by 3.5 times.

Read originalOpens marktechpost.com

This summary was generated by AI from the original article and may contain errors; the original is authoritative. Copyright belongs to the original author.

Recent stories from this source