alkove.Voiceprint
class Voiceprint(data: dict)A voice, bound to this version’s Timbre: give it to Focus (voiceprint=), compare it (Timbre.verify), store to_json().
Methods
Section titled “Methods”from_json()
Section titled “from_json()”Voiceprint.from_json(j: Union[dict, str]) -> Optional[Voiceprint]None for a print of another Timbre: it no longer means anything, learn it again.
merge()
Section titled “merge()”Voiceprint.merge(prints: Sequence[Voiceprint]) -> VoiceprintOne print with the centers of several (near and far, phone and headset): a voice is as close as its closest center.
to_json()
Section titled “to_json()”to_json() -> dictThe print as plain JSON, to store and read back with Voiceprint.from_json.
similarity()
Section titled “similarity()”similarity(other: Voiceprint) -> floatThe cosine of the closest pair of centers.
Attributes
Section titled “Attributes”| Attribute | Type | Description |
|---|---|---|
embedding |
np.ndarray |
What Focus takes: 192 numbers. |