voiceclonnx-lscodec

ONNX export of LSCodec (Guo et al., Interspeech 2025) — a low-bitrate, speaker-decoupled discrete speech codec — packaged for voiceclonnx.

Pipeline

  1. lscodec_encoder.onnx — raw 16 kHz audio → 64-d content tokens (50 Hz).
  2. numpy VQ against codebook.npy (300 entries) — speaker-agnostic content.
  3. wavlm_l6.onnx — reference clip → WavLM-Large layer-6 prompt (exported at a fixed 4 s window; references are padded/cropped to 64000 samples).
  4. lscodec_vocoder.onnx — content + prompt → 24 kHz waveform (CTXVEC2WAV).

*_q8.onnx are INT8 variants (fp32 recommended for quality).

Usage

from voiceclonnx import VoiceCloner
cloner = VoiceCloner(engine="lscodec")
cloner.clone_voice("source.wav", "target_reference.wav", "out.wav")

License

MIT. LSCodec code and weights are MIT (X-LANCE, cantabile-kwok/lscodec_50hz); WavLM-Large is MIT (Microsoft). These ONNX artifacts inherit MIT.

Downloads last month
18
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Collection including TigreGotico/voiceclonnx-lscodec