Skip to content
1 min read · 148 words

Interface: TransformersJsSynthesizeOptions ​

Defined in: src/batteries/tts/transformers_js/types.ts:145

Per-call options for TransformersJsTtsAdapter.synthesize. Extends the shared SynthesizeOptions (voice/rate) with the transformers.js per-call knobs; each field overrides the constructor default of the same name for this one call.

Extends ​

Properties ​

PropertyTypeDescriptionInherited fromDefined in
numInferenceSteps?numberDenoising step count for this call; overrides the constructor numInferenceSteps.-src/batteries/tts/transformers_js/types.ts:149
rate?numberSpeaking-rate multiplier for this call; overrides the constructor rate.SynthesizeOptions.ratesrc/batteries/tts/_shared/index.ts:75
speakerEmbeddings?TransformersJsTtsSpeakerEmbeddingsSpeaker-embedding reference for this call; overrides the constructor speakerEmbeddings.-src/batteries/tts/transformers_js/types.ts:147
voice?stringVoice for this call; overrides the constructor voice.SynthesizeOptions.voicesrc/batteries/tts/_shared/index.ts:73