Timbre
Methods
Section titled “Methods”embed()
Section titled “embed()”embed(
pcm,opts?):Promise<Voiceprint>
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
pcm |
Float32Array |
opts? |
{ source?: "raw" | "focus"; } |
opts.source? |
"raw" | "focus" |
Returns
Section titled “Returns”Promise<Voiceprint>
identify()
Section titled “identify()”identify(
voice,known,opts?):Promise<{score:number;who:string; } |null>
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
voice |
Float32Array<ArrayBufferLike> | Voiceprint |
known |
Record<string, Voiceprint> |
opts? |
{ level?: Level; } |
opts.level? |
Level |
Returns
Section titled “Returns”Promise<{ score: number; who: string; } | null>
verify()
Section titled “verify()”verify(
a,b,opts?):object
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
a |
Voiceprint |
b |
Voiceprint |
opts? |
{ level?: Level; } |
opts.level? |
Level |
Returns
Section titled “Returns”object
same:
boolean
score:
number
create()
Section titled “create()”
staticcreate():Promise<Timbre>
Returns
Section titled “Returns”Promise<Timbre>