MLX-compatible safetensors export of
microsoft/wavlm-base-plus.
This bundle is used by speech-swift as the SSL feature-extractor companion for
Indic-Mio raw-reference voice cloning.
WavLM runs on 16 kHz mono speech audio and produces hidden states that downstream
speech models can use for speaker, content, and paralinguistic representations.
For Indic-Mio, speech-swift averages hidden layers 1 and 2, then feeds those
features into MioCodec's global encoder to produce the 128-dimensional speaker
embedding used by the decoder.
Part of
soniqo.audio, an on-device speech toolkit.
1import IndicMioTTS
2
3let model = try await IndicMioTTSModel.fromPretrained()
4let audio = try await model.generate(
5 text: "नमस्ते, यह संदर्भ आवाज़ का परीक्षण है। <happy>",
6 language: "hindi",
7 referenceAudio: referenceSamples,
8 referenceSampleRate: referenceSampleRate
9)
The runtime downloads this companion automatically when raw reference audio is
used. For local testing with a pre-downloaded bundle:
1speech speak \
2 --engine indic-mio \
3 --voice-sample reference.wav \
4 --output clone.wav \
5 "नमस्ते, यह संदर्भ आवाज़ का परीक्षण है। <happy>"
Converted from
microsoft/wavlm-base-plus.
The upstream WavLM source project is available from
microsoft/unilm.
MIT, following the upstream WavLM source project license.