Constructor
new Speaker(id, name, hue, sampleopt)
Parameters:
Properties| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
id | string | Unique identifier (raw UID) for the speaker. | ||
name | string | Display name shown in the UI. | ||
hue | string | Hex color string used to visually distinguish this speaker. | ||
sample | Object | <optional> | {} | Voice sample assigned to the speaker. |
| Name | Type | Description |
|---|---|---|
id | string | Unique identifier (raw UID) for the speaker. |
name | string | Display name shown in the UI. |
hue | string | Hex color string used to visually distinguish this speaker. |
} | Object | sample - Voice sample assigned to the speaker. |
- Source
Classes
Methods
clone(deepopt) → {Speaker}
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
deep | boolean | <optional> | false | If true, peaks in sample are cloned; otherwise sample is copied by reference. |
- Source
Returns:
- Type:
- Speaker