TextToSpeechModel
Defined in: packages/runntime/src/zoo/tasks/audio/textToSpeech.ts:53
What to load. Every field is optional; a missing path comes from models.textToSpeech.REVERB.DEFAULT.
Properties
Section titled “Properties”codecPath?
Section titled “codecPath?”
readonlyoptionalcodecPath?:ModelPath
Defined in: packages/runntime/src/zoo/tasks/audio/textToSpeech.ts:58
The Higgs Audio v2 tokenizer checkpoint. createTextToSpeech reads its decoder, createVoiceMaker its encoder.
dtype?
Section titled “dtype?”
readonlyoptionaldtype?:"f32"|"f16"
Defined in: packages/runntime/src/zoo/tasks/audio/textToSpeech.ts:64
Precision on the GPU of the math and the float weights. Needs
a device with shader-f16 for f16. Default: f16 where the device
has it, f32 elsewhere. Either loads any weight file.
modelPath?
Section titled “modelPath?”
readonlyoptionalmodelPath?:ModelPath
Defined in: packages/runntime/src/zoo/tasks/audio/textToSpeech.ts:55
The Reverb checkpoint. The weight format is read from the file.
tokenizerPath?
Section titled “tokenizerPath?”
readonlyoptionaltokenizerPath?:string
Defined in: packages/runntime/src/zoo/tasks/audio/textToSpeech.ts:60
The Hugging Face tokenizer.json.
verbalize?
Section titled “verbalize?”
readonlyoptionalverbalize?: (text,language) =>string
Defined in: packages/runntime/src/zoo/tasks/audio/textToSpeech.ts:69
Rewrites the text and the voice’s transcript as they are read aloud,
for example numbers as words:
(text, language) => new Verbalizer(language).process(text) from
verbalis. Default: none.
Parameters
Section titled “Parameters”string
language
Section titled “language”"en" | "de" | "fr" | "es" | "it" | "pl" | "pt"
Returns
Section titled “Returns”string