Skip to main content
Version: 0.10.0

Type Alias: KokoroTtsChunk

KokoroTtsChunk = object

Defined in: extensions/speech/tasks/kokoroTextToSpeech.ts:105

Audio output chunk yielded by the createKokoroTextToSpeech generator.

Properties

audio

readonly audio: Float32Array

Defined in: extensions/speech/tasks/kokoroTextToSpeech.ts:107

Float32 PCM audio samples for this chunk, normalized in [-1, 1].


chunkIndex

readonly chunkIndex: number

Defined in: extensions/speech/tasks/kokoroTextToSpeech.ts:113

Zero-based index of this chunk.


duration

readonly duration: number

Defined in: extensions/speech/tasks/kokoroTextToSpeech.ts:111

Duration of this audio chunk in seconds.


sampleRate

readonly sampleRate: number

Defined in: extensions/speech/tasks/kokoroTextToSpeech.ts:109

Audio sampling rate in Hz (see KOKORO_SAMPLE_RATE).


totalChunks

readonly totalChunks: number

Defined in: extensions/speech/tasks/kokoroTextToSpeech.ts:115

Total number of chunks partitioned from the input text.