Speaker

Container class for defined speakers in a transcript.

Constructor

new Speaker(id, name, hue, sampleopt)

Parameters:
NameTypeAttributesDefaultDescription
idstringUnique identifier (raw UID) for the speaker.
namestringDisplay name shown in the UI.
huestringHex color string used to visually distinguish this speaker.
sampleObject<optional>
{}Voice sample assigned to the speaker.
Properties
NameTypeDescription
idstringUnique identifier (raw UID) for the speaker.
namestringDisplay name shown in the UI.
huestringHex color string used to visually distinguish this speaker.
}Objectsample - Voice sample assigned to the speaker.

Classes

Speaker

Methods

clone(deepopt) → {Speaker}

Parameters:
NameTypeAttributesDefaultDescription
deepboolean<optional>
falseIf true, peaks in sample are cloned; otherwise sample is copied by reference.
Returns:
Type: 
Speaker