Skip to content

Timbre

embed(pcm, opts?): Promise<Voiceprint>

Parameter Type
pcm Float32Array
opts? { source?: "raw" | "focus"; }
opts.source? "raw" | "focus"

Promise<Voiceprint>


identify(voice, known, opts?): Promise<{ score: number; who: string; } | null>

Parameter Type
voice Float32Array<ArrayBufferLike> | Voiceprint
known Record<string, Voiceprint>
opts? { level?: Level; }
opts.level? Level

Promise<{ score: number; who: string; } | null>


verify(a, b, opts?): object

Parameter Type
a Voiceprint
b Voiceprint
opts? { level?: Level; }
opts.level? Level

object

same: boolean

score: number


static create(): Promise<Timbre>

Promise<Timbre>