Compare providers
Compare Local (Whisper), OpenAI Realtime, Deepgram, ElevenLabs, Cartesia, AssemblyAI, Google Cloud, Azure Speech, AWS, Gladia, Speechmatics, Rime, and Mock.
A provider is where speech is processed. You pick one by importing its factory from a subpath and passing it to createSession. The rest of your code stays the same when you switch.
import { createSession } from "voiceai-sdk";
import { deepgram } from "voiceai-sdk/deepgram";
await using session = await createSession(deepgram());The provider is the first argument to createSession, not an option. To move this code to AssemblyAI, import { assemblyai } from "voiceai-sdk/assemblyai" and pass assemblyai() instead.
Google Cloud, Azure Speech, and AWS wrap the vendor's SDK, which you install next to VoiceAI SDK. The other providers call the provider's HTTP or WebSocket API directly, so they need no package besides VoiceAI SDK.
Not sure where to start? Choose a provider maps common needs to a provider. Adapters that other people publish and maintain are on Community providers.
At a glance
| Provider | Factory | Credentials | Best for |
|---|---|---|---|
| Local (Whisper) | local() from /local | None | Development, CI, and offline work |
| OpenAI Realtime | openai() from /openai | OPENAI_API_KEY | Voice agents that answer in real time |
| Deepgram | deepgram() from /deepgram | DEEPGRAM_API_KEY | Streaming transcripts with your own LLM |
| ElevenLabs | elevenlabs() from /elevenlabs | ELEVENLABS_API_KEY | Choosing from many voices |
| Cartesia | cartesia() from /cartesia | CARTESIA_API_KEY | Streaming speech in a pipeline |
| AssemblyAI | assemblyai() from /assemblyai | ASSEMBLYAI_API_KEY | Transcripts with speaker labels |
| Google Cloud | google() from /google | GOOGLE_APPLICATION_CREDENTIALS | Apps already on Google Cloud |
| Azure Speech | azure() from /azure | AZURE_SPEECH_KEY, AZURE_SPEECH_REGION | Apps on Azure, and regional data residency |
| AWS | aws() from /aws | AWS credentials, AWS_REGION | Apps already on AWS |
| Gladia | gladia() from /gladia | GLADIA_API_KEY | Multilingual transcripts |
| Speechmatics | speechmatics() from /speechmatics | SPEECHMATICS_API_KEY | Transcripts with speaker labels |
| Rime | rime() from /rime | RIME_API_KEY | Phone agents in a pipeline |
| Mock | mock() from /mock | None | Unit tests |
What each provider supports
Providers differ in direction, streaming, word timings, speaker labels and voices. A pipeline such as { stt: deepgram(), tts: cartesia() } takes its speech-to-text flags from the first provider and its text-to-speech flags from the second. Capabilities explains each flag.
| Provider | STT | Streaming STT | TTS | Streaming TTS | Speech-to-speech | Word timings | Speakers |
|---|---|---|---|---|---|---|---|
| Local (Whisper) | Yes | Yes | Yes | Yes | — | Yes | — |
| OpenAI Realtime | Yes | Yes | Yes | Yes | Yes | — | — |
| Deepgram | Yes | Yes | Yes | Yes | — | Yes | Yes |
| ElevenLabs | Yes | — | Yes | Yes | — | Yes | Yes |
| Cartesia | — | — | Yes | Yes | — | Yes | — |
| AssemblyAI | Yes | Yes | — | — | — | Yes | Yes |
| Google Cloud | Yes | Yes | Yes | — | — | Yes | Yes |
| Azure Speech | Yes | Yes | Yes | Yes | — | Yes | Yes |
| AWS | Yes | Yes | Yes | Yes | — | Yes | Yes |
| Gladia | Yes | Yes | — | — | — | Yes | Yes |
| Speechmatics | Yes | Yes | — | — | — | Yes | Yes |
| Rime | — | — | Yes | Yes | — | — | — |
| Mock | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
Speech-to-speech in one sentence
A speech-to-speech provider hears and answers in one model, so there is no text step to wait for. A pipeline puts your own model between a speech-to-text and a text-to-speech provider, so you choose the model and the voice separately. See How it works.
Provider pages
Local (Whisper)
whisper.cpp and Piper on your machine or CI runner. No account and no network.
OpenAI Realtime
Speech in, speech out, in one model, with barge-in.
Deepgram
Streaming transcripts with word timings and speakers, and Aura voices.
ElevenLabs
Streaming text-to-speech in a large library of voices.
Cartesia
Streaming speech with Sonic voices and word timings.
AssemblyAI
Streaming and batch transcripts with speaker labels.
Google Cloud
Speech-to-Text and Text-to-Speech with your Google Cloud credentials.
Azure Speech
Continuous recognition and neural voices in your Azure region.
AWS
Amazon Transcribe and Polly with your AWS credentials.
Gladia
Live and batch transcripts with language detection.
Speechmatics
Real-time and batch transcripts with speaker labels.
Rime
Streaming speech with voices built for phone calls.
Mock
An in-process fake with scripted transcripts and silent audio.
Community providers
Adapters that other people publish and maintain.
Write a provider
Adapt any other speech service to the same API.