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.Recommended Voices
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:Related
Synthesize
Text-to-Speech synthesis
TTS Output
Working with audio output
Voice Agent
Full voice pipeline