qualia_audio/models/audio_tokens/mod.rs
1//! RVQ / FSQ discrete audio token codec (quantizer ABI). Re-exports only (AU-GEN).
2//!
3//! The quantizer *structure* is pure Rust and real now: [`rvq_quantize`]/[`rvq_dequantize`]
4//! implement a residual vector quantizer over caller-owned codebooks, and
5//! [`fsq_quantize`]/[`fsq_dequantize`] implement finite scalar quantization. The neural
6//! encoder/decoder that produces the latents and codebooks is `NeedsWeights` (out of scope).
7
8pub mod fsq;
9pub mod rvq;
10
11pub use fsq::{fsq_dequantize, fsq_quantize};
12pub use rvq::{rvq_dequantize, rvq_quantize};