On this page

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 buildingStart withWhy
A phone or voice agent that talks backOpenAI RealtimeSpeech in and speech out in one model, with barge-in
An agent with your own LLM in the middleDeepgram + ElevenLabsStreaming transcripts in, streaming speech out, any model between
Transcripts of recordings or meetingsAssemblyAI or SpeechmaticsWord timings and speaker labels
An app already on a cloud vendorGoogle Cloud, Azure or AWSBilling, regions and credentials you already have
Offline or on-device workLocalWhisper and Piper on your machine, no account
Unit tests and CIMockIn-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:

TypeScript
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 streamingStt in 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

Was this page helpful?

Esc

Loading…

↑↓ navigate openCtrl J preview