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()?
optionalonBegin: () =>void|Promise<void>
Defined in: types/tts.ts:190
Called when streaming begins
Returns
void | Promise<void>
Inherited from
TextToSpeechStreamingCallbacks.onBegin
onEnd()?
optionalonEnd: () =>void|Promise<void>
Defined in: types/tts.ts:192
Called when streaming ends
Returns
void | Promise<void>
Inherited from
TextToSpeechStreamingCallbacks.onEnd
onNext()?
optionalonNext: (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?
optionalspeed:number
Defined in: types/tts.ts:102
optional speed argument - the higher it is, the faster the speech becomes