CoolFace
Modelpublic

FluidInference/campplus-coreml

sourceHugging Faceotherupdated 4mo agoView on Hugging Face
0likes
Model Card

CAM++ — CoreML (Apple Neural Engine)

CoreML conversion of FunASR's CAM++ speaker-embedding model (~7.2M params), for on-device speaker verification / diarization on Apple Silicon. Upstream: iic/speech_campplus_sv_zh-cn_16k-common.

Files

FilePrecisionCompute unitRole
CamPlusPreprocessor.mlmodelcFP32CPUwaveform → 80-d fbank features
CamPlusPlus.mlmodelcFP16ANEfbank → 192-d speaker embedding

Pipeline

waveform → [Preprocessor fp32/CPU] → fbank [1,T,80]
        → [CAM++ fp16/ANE] → embedding [1,192]  (L2-normalize, then cosine for verification/clustering)

CAM++ normalizes the fbank internally. The 192-d embedding is used with cosine similarity for speaker verification and diarization clustering.

Benchmark — AISHELL-1 speaker verification

MetricValue
EER0.48% (20 speakers, 6000 same / 6000 diff trials)
same-speaker cosine0.805
different-speaker cosine0.256

AISHELL-1 (clean read Mandarin) is easier than the official CN-Celeb (~6-7%). CoreML↔torch embedding cosine 0.9997-0.99999.

License

Weights derive from FunASR's CAM++; upstream license applies. Format conversion only.