Skip to main content
Version: Next

Interface: TextToSpeechStreamingPhonemeInput

Defined in: types/tts.ts:218

Streaming input definition for pre-computed phonemes. Same as TextToSpeechStreamingInput but accepts phonemes instead of text.

Extends

Properties

onBegin()?

optional onBegin: () => void | Promise<void>

Defined in: types/tts.ts:190

Called when streaming begins

Returns

void | Promise<void>

Inherited from

TextToSpeechStreamingCallbacks.onBegin


onEnd()?

optional onEnd: () => void | Promise<void>

Defined in: types/tts.ts:192

Called when streaming ends

Returns

void | Promise<void>

Inherited from

TextToSpeechStreamingCallbacks.onEnd


onNext()?

optional onNext: (audio) => void | Promise<void>

Defined in: types/tts.ts:191

Called after each audio chunk gets calculated.

Parameters

audio

Float32Array

Returns

void | Promise<void>

Inherited from

TextToSpeechStreamingCallbacks.onNext


phonemes

phonemes: string

Defined in: types/tts.ts:101

pre-computed IPA phoneme string

Inherited from

TextToSpeechPhonemeInput.phonemes


speed?

optional speed: number

Defined in: types/tts.ts:102

optional speed argument - the higher it is, the faster the speech becomes

Inherited from

TextToSpeechPhonemeInput.speed