CAM++ speaker encoder, Chinese and English (MLX)
3D-Speaker's CAM++ speaker-verification model trained on a large Chinese and
English corpus (ModelScope iic/speech_campplus_sv_zh_en_16k-common_advanced,
v1.0.0), converted to safetensors for MLX.
It turns 16 kHz speech into a 192-dimensional speaker embedding; two pieces of
speech by the same person have a high cosine similarity.
Dicta uses it on the Mac, offline, to keep one person under one speaker label across a long recording. Dicta stores no embeddings.
| Parameters | 6.85 M (6.93 M values with the BatchNorm statistics) |
| File | model.safetensors, float16, about 14 MB |
| Input | 16 kHz mono, 80 Kaldi log mel filterbanks (25 ms / 10 ms, Povey window, dither 0), mean-normalised over time |
| Output | 192 floats (compare with cosine similarity) |
| Reported EER | CN-Celeb test 5.98 %, VoxCeleb1-O 1.16 % (the original model card) |
Files
model.safetensors: the weights, keyed as Dicta's Swift module (head,tdnn,blocks.N.layers.M,transits.N,out_bn,dense,dense_bn); convolutions in MLX's channels-last layout.config.json: the architecture and the front end.conversion.json: the source file, its sha256 and the conversion's settings.
Made by Dicta's scripts/models/convert-campplus.py from
campplus_cn_en_common.pt (sha256 92f29b94e6948786a26778c9e302525d185bb08c8b9f5252ed98776902840199).
With Dicta's MLX port the embeddings match the official PyTorch
implementation (3D-Speaker speakerlab, torchaudio's Kaldi fbank) to a
cosine similarity of 0.99999 or more (Dicta's scripts/models/campplus-check.py).
Licence and attribution
Apache License 2.0 (LICENSE), as the original. The model and its training
are the work of the 3D-Speaker authors; see NOTICE and
3D-Speaker.
@inproceedings{wang2023campplus,
title={CAM++: A Fast and Efficient Network for Speaker Verification Using Context-Aware Masking},
author={Wang, Hui and Zheng, Siqi and Chen, Yafeng and Cheng, Luyao and Chen, Qian},
booktitle={Interspeech},
year={2023}
}