Type Alias: KokoroTtsChunk
KokoroTtsChunk =
object
Defined in: extensions/speech/tasks/kokoroTextToSpeech.ts:105
Audio output chunk yielded by the createKokoroTextToSpeech generator.
Properties
audio
readonlyaudio:Float32Array
Defined in: extensions/speech/tasks/kokoroTextToSpeech.ts:107
Float32 PCM audio samples for this chunk, normalized in [-1, 1].
chunkIndex
readonlychunkIndex:number
Defined in: extensions/speech/tasks/kokoroTextToSpeech.ts:113
Zero-based index of this chunk.
duration
readonlyduration:number
Defined in: extensions/speech/tasks/kokoroTextToSpeech.ts:111
Duration of this audio chunk in seconds.
sampleRate
readonlysampleRate:number
Defined in: extensions/speech/tasks/kokoroTextToSpeech.ts:109
Audio sampling rate in Hz (see KOKORO_SAMPLE_RATE).
totalChunks
readonlytotalChunks:number
Defined in: extensions/speech/tasks/kokoroTextToSpeech.ts:115
Total number of chunks partitioned from the input text.