Choose a provider
Pick where speech is processed, based on whether you need speech-to-speech, streaming transcripts, or a specific voice.
Every provider runs the same session API, so the choice is about what happens to the audio: where it is processed, how fast the first words come back, and which voices and languages you get. You can change your mind later by changing one import.
Start with the shape of your app
| If you are building | Start with | Why |
|---|---|---|
| A phone or voice agent that talks back | OpenAI Realtime | Speech in and speech out in one model, with barge-in |
| An agent with your own LLM in the middle | Deepgram + ElevenLabs | Streaming transcripts in, streaming speech out, any model between |
| Transcripts of recordings or meetings | AssemblyAI or Speechmatics | Word timings and speaker labels |
| An app already on a cloud vendor | Google Cloud, Azure or AWS | Billing, regions and credentials you already have |
| Offline or on-device work | Local | Whisper and Piper on your machine, no account |
| Unit tests and CI | Mock | In-process, scripted, no network |
One provider or a pipeline
A speech-to-speech provider such as openai() hears and answers in one connection. Any provider that does only one direction can be combined with another in a pipeline:
import { createSession } from "voiceai-sdk";
import { deepgram } from "voiceai-sdk/deepgram";
import { elevenlabs } from "voiceai-sdk/elevenlabs";
await using session = await createSession({ stt: deepgram(), tts: elevenlabs() });A pipeline gives you a model of your choice between the two halves and the voice you want. A single speech-to-speech provider has fewer moving parts. Both expose the same methods; session.capabilities tells you what the combination supports.
Questions to ask
- Does it need to talk back? OpenAI Realtime, Deepgram, ElevenLabs, Cartesia, Rime, Local and the three cloud vendors speak. AssemblyAI, Gladia and Speechmatics only transcribe.
- Do you need partial transcripts while someone speaks? Check
streamingSttin Compare providers. - Do you need to know who said what? Check diarization. It depends on the provider and sometimes on the language.
- Where can the audio go? Some teams can't send audio to a third party. Local keeps it on your machine.
Next steps
- Compare providers: every capability side by side.
- Capabilities: what each capability flag means.