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

Overview

The Speech-to-Text (STT) API allows you to transcribe audio data to text using on-device models compiled to WebAssembly. All transcription happens locally in the browser for privacy and offline capability.

Basic Usage

Setup

Before transcribing, load an STT model:

API Reference

STT.loadModel

Load an STT model for transcription.

STTModelConfig

Model File Interfaces

STT.transcribe

Transcribe audio data to text.
Parameters:

STTTranscriptionResult

Examples

Transcribe from Microphone

With Language Setting

Available Model Architectures

Error Handling

STT Streaming

Real-time streaming transcription

STT Options

Advanced configuration

VAD

Voice Activity Detection

Voice Agent

Complete voice pipeline