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.
Properties
Section titled “Properties”maxSeconds
Section titled “maxSeconds”
readonlymaxSeconds:number
Defined in: packages/runntime/src/zoo/tasks/audio/textToSpeech.ts:295
The longest recording fromRecording() takes on this device, in seconds.
minSeconds
Section titled “minSeconds”
readonlyminSeconds:number
Defined in: packages/runntime/src/zoo/tasks/audio/textToSpeech.ts:292
The shortest recording fromRecording() takes, in seconds.
Methods
Section titled “Methods”dispose()
Section titled “dispose()”dispose():
void
Defined in: packages/runntime/src/zoo/tasks/audio/textToSpeech.ts:301
Frees the weights and every GPU buffer the runner holds.
Returns
Section titled “Returns”void
fromRecording()
Section titled “fromRecording()”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.
Parameters
Section titled “Parameters”samples
Section titled “samples”Float32Array
options
Section titled “options”Returns
Section titled “Returns”Promise<Voice>