Skip to main content
Version: Next

Type Alias: ReverbTtsOptions<K>

ReverbTtsOptions<K> = object

Defined in: extensions/speech/tasks/reverbTextToSpeech.ts:166

Per-call options of Reverb synthesis.

Type Parameters​

K​

K extends PropertyKey = never

Preset voice keys.

Properties​

language​

readonly language: ReverbLanguage

Defined in: extensions/speech/tasks/reverbTextToSpeech.ts:170

Language of the text.


maxChunkDuration?​

readonly optional maxChunkDuration: number

Defined in: extensions/speech/tasks/reverbTextToSpeech.ts:181

Max seconds of speech per chunk. Defaults to 20, or to the models' limit when that is shorter.


pace?​

readonly optional pace: "speech" | "recording"

Defined in: extensions/speech/tasks/reverbTextToSpeech.ts:179

The way we estimate duration of the output sample. The duration is relative to the reference length, which we can be measured it two ways: 'speech': we count only speech frames and inner pauses not longer than 0.5s 'recording': we count the whole clip, pauses and prefix/suffix silence included.


postprocess?​

readonly optional postprocess: ReverbPostprocessOptions

Defined in: extensions/speech/tasks/reverbTextToSpeech.ts:183

Post-processing of each chunk's audio.


sampling?​

readonly optional sampling: ReverbSamplingOptions

Defined in: extensions/speech/tasks/reverbTextToSpeech.ts:185

Sampler settings.


speed?​

readonly optional speed: number

Defined in: extensions/speech/tasks/reverbTextToSpeech.ts:172

Speech speed factor, 0.5 to 2.0. Defaults to 1.0.


voice​

readonly voice: K | ReverbVoice

Defined in: extensions/speech/tasks/reverbTextToSpeech.ts:168

A preset voice key, or a ReverbVoice from encodeVoice.