Skip to main content
Version: Next

Type Alias: ReverbTtsChunk

ReverbTtsChunk = object

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

Audio chunk yielded by ReverbTextToSpeech.synthesize.

Properties​

audio​

readonly audio: Float32Array

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

Float32 PCM samples in [-1, 1].


chunkIndex​

readonly chunkIndex: number

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

Zero-based index of this chunk.


duration​

readonly duration: number

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

Duration in seconds.


sampleRate​

readonly sampleRate: number

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

Sampling rate in Hz.


totalChunks​

readonly totalChunks: number

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

Number of chunks the text was split into.