New AssemblyAI-TTS-1: Text-to-speech for voice agents. Learn more
JavaScript speech-to-text API

The speech-to-text API for JavaScript developers

Build Speech-to-Text into your app with a couple of API calls—transcribe audio files from a Node backend or stream live audio over a WebSocket, and get accurate text back with timestamps and speaker labels. Start free, no credit card.

Plain JavaScript, no lock-in

Call the REST API with fetch from any runtime—Node, Deno, Bun, or the browser. A typed npm package is there if you want it, never required.

Real-time from any stream

Stream mic, telephony, or in-app audio over a WebSocket and partial and final transcripts come back within a few hundred milliseconds.

Audio files to text

Upload a file or point the API at a URL, then poll for the finished transcript—formatted text with timestamps in structured JSON.

Metaview
Ashby
Cluely
Genio
Siro

36%

improvement in close rate

See case study
LiveKit
EliseAI
Commure
Dovetail
Fireflies

“The new Universal-3.5 Pro speech model from AssemblyAI is best so far in terms of accuracy, latency, and language switching.”

Retell
CallRail
Apollo.io
ClickUp
Calabrio

80%

increase in customer satisfaction

HeyGen
Granola
Siro
JotPsych
Granola

“Assembly has saved us countless hours managing models, and provided exceptional accuracy.”

Metaview
Ashby
Cluely
Genio
Siro

36%

improvement in close rate

See case study
LiveKit
EliseAI
Commure
Dovetail
Fireflies

“The new Universal-3.5 Pro speech model from AssemblyAI is best so far in terms of accuracy, latency, and language switching.”

Retell
CallRail
Apollo.io
ClickUp
Calabrio

80%

increase in customer satisfaction

HeyGen
Granola
Siro
JotPsych
Granola

“Assembly has saved us countless hours managing models, and provided exceptional accuracy.”

Built for applications

A JavaScript API for speech-to-text in your app

Transcribe uploads in a Node batch job, power live captions in a meeting tool, or feed a voice agent from a telephony stream—the same API handles files and real-time audio. Every transcript comes back as structured JSON with speaker labels, timestamps, and language detection, so it drops straight into your product instead of a dictation demo.

Start building free See the live demo in the Playground

No credit card required

Streaming word error rate

Word error rate is the share of words the model gets wrong against a human reference—the standard measure of accuracy for live, realtime Speech-to-Text.

Normalized WER on the voice-agent caller corpus, mean of three noise conditions.

*Lower is better*
Voice-agent word error rate, realtime
AssemblyAI Universal-3.6 Pro Realtime
5.19%
Soniox Realtime
6.83%
ElevenLabs Scribe v2 Realtime
7.78%
Speechmatics Enhanced Realtime
8.14%
Google Gemini 3.5 Transcribe Live
8.48%
AWS Transcribe Streaming
8.58%
Deepgram Nova-3
8.64%

Source: AssemblyAI realtime benchmarks technical report v2026.09 (assemblyai.com/benchmarks), data 18 Aug–24 Sep 2026.

Common questions