Skip to content

pkgs/audio/voiceprint

Provides speaker embedding and voice identity detection abstraction, supports ECAPA, ERes2Net and NCNN-backed model paths, and maintains matching identity through vecid.

Go API References

Core structure and main function

SymbolFunction
DetectorDefine audio input, speaker detection and lifecycle.
DetectorConfigConfigure model, threshold and vector identity behavior.
DetectResultReturns speaker identity, confidence and embedding result.
DetectCallbackReceive detection events.
ConfidentGtExpress confidence threshold callback.
NewECAPA / NewERes2NetCreate the corresponding speaker model detector.

The Voiceprint package is responsible for signal feature, embedding model and identity detection, and does not own recording permissions, peer identity, user profile or biometric data retention policy; these are explicitly controlled by the calling product layer.