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

Overview

The Web SDK supports multiple TTS voice models via Piper TTS (VITS architecture) compiled to WebAssembly through sherpa-onnx. This page covers available voices, switching voices, and managing multiple voice models.

Available Voices

The Web SDK uses Piper TTS voice models in ONNX format. These are neural voices that produce natural-sounding speech.
Piper TTS has hundreds of voices in many languages. Browse the full catalog at Piper Samples.

Loading a Voice

Switching Voices

Unload the current voice before loading a new one:

Voice Properties

Check the currently loaded voice:

Multi-Speaker Models

Some Piper voice models include multiple speakers. Select a speaker by ID:

Voice Configuration Options

Clean Up

Release TTS resources when no longer needed:

Synthesize

Text-to-Speech synthesis

TTS Output

Working with audio output

Voice Agent

Full voice pipeline