Skip to main content
Early Beta — The Web SDK is in early beta. APIs may change between releases.

Overview

The Web SDK’s TTS produces raw PCM audio as Float32Array. This page covers how to work with the audio output, including playback, conversion, and integration with Web Audio API.
The Web SDK currently produces audio all-at-once (non-streaming). Streaming TTS output is planned for a future release.

Playing Audio

Using AudioPlayback

The SDK includes a built-in AudioPlayback class for playing synthesized audio:

Stop Playback

Using Web Audio API Directly

For more control, use the Web Audio API directly:

Converting to WAV

Convert synthesized audio to WAV format for download or storage:

Queuing Multiple Utterances

Play multiple TTS results in sequence:

Synthesize

Text-to-Speech synthesis

TTS Voices

Voice management