Skip to content

VoiceMaker

Defined in: packages/runntime/src/zoo/tasks/audio/textToSpeech.ts:290

A loaded voice maker, from createVoiceMaker(). Calls run one at a time, in order.

readonly maxSeconds: number

Defined in: packages/runntime/src/zoo/tasks/audio/textToSpeech.ts:295

The longest recording fromRecording() takes on this device, in seconds.


readonly minSeconds: number

Defined in: packages/runntime/src/zoo/tasks/audio/textToSpeech.ts:292

The shortest recording fromRecording() takes, in seconds.

dispose(): void

Defined in: packages/runntime/src/zoo/tasks/audio/textToSpeech.ts:301

Frees the weights and every GPU buffer the runner holds.

void


fromRecording(samples, options): Promise<Voice>

Defined in: packages/runntime/src/zoo/tasks/audio/textToSpeech.ts:299

The voice of a mono recording of one speaker, for synthesize(). Throws INVALID_ARGUMENT for a recording shorter than minSeconds or longer than maxSeconds.

Float32Array

FromRecordingOptions

Promise<Voice>