File size: 1,201 Bytes
c0e3406 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | ---
license: mit
library_name: onnxruntime
tags:
- voice-conversion
- onnx
- vconnx
- knn-vc
pipeline_tag: audio-to-audio
---
# vconnx · kNN-VC (pure ONNX)
ONNX export of [kNN-VC](https://github.com/bshall/knn-vc) (Baas et al.,
Interspeech 2023, MIT) for the **vconnx** voice-conversion library:
WavLM-Large layer-6 feature extractor + prematched HiFi-GAN vocoder; the
kNN regression step is pure numpy at inference time. Any-to-any voice
conversion at 16 kHz, CPU-only.
| file | role | size |
|---|---|---|
| `wavlm_layer6.onnx` | feature extractor (fp32) | 387 MB |
| `wavlm_layer6_q8.onnx` | feature extractor (int8) | 98 MB |
| `hifigan_knnvc.onnx` | vocoder (fp32) | 63 MB |
| `hifigan_knnvc_q8.onnx` | vocoder (int8) | 25 MB |
Export parity vs the torch reference (max abs):
WavLM see report ·
HiFi-GAN see report
(full reports in the repo).
## Usage
```python
from vconnx import VoiceCloner
out = VoiceCloner(engine="knnvc").clone_voice("source.wav", "reference.wav")
```
Provenance and upstream license: see `PROVENANCE.md`. Weights derive from
[bshall/knn-vc](https://github.com/bshall/knn-vc) (MIT) and
[microsoft WavLM](https://github.com/microsoft/unilm/tree/master/wavlm) (MIT).
|