On this page

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.

TypeScript
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

ProviderFactoryCredentialsBest for
Local (Whisper)local() from /localNoneDevelopment, CI, and offline work
OpenAI Realtimeopenai() from /openaiOPENAI_API_KEYVoice agents that answer in real time
Deepgramdeepgram() from /deepgramDEEPGRAM_API_KEYStreaming transcripts with your own LLM
ElevenLabselevenlabs() from /elevenlabsELEVENLABS_API_KEYChoosing from many voices
Cartesiacartesia() from /cartesiaCARTESIA_API_KEYStreaming speech in a pipeline
AssemblyAIassemblyai() from /assemblyaiASSEMBLYAI_API_KEYTranscripts with speaker labels
Google Cloudgoogle() from /googleGOOGLE_APPLICATION_CREDENTIALSApps already on Google Cloud
Azure Speechazure() from /azureAZURE_SPEECH_KEY, AZURE_SPEECH_REGIONApps on Azure, and regional data residency
AWSaws() from /awsAWS credentials, AWS_REGIONApps already on AWS
Gladiagladia() from /gladiaGLADIA_API_KEYMultilingual transcripts
Speechmaticsspeechmatics() from /speechmaticsSPEECHMATICS_API_KEYTranscripts with speaker labels
Rimerime() from /rimeRIME_API_KEYPhone agents in a pipeline
Mockmock() from /mockNoneUnit 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.

ProviderSTTStreaming STTTTSStreaming TTSSpeech-to-speechWord timingsSpeakers
Local (Whisper)YesYesYesYes—Yes—
OpenAI RealtimeYesYesYesYesYes——
DeepgramYesYesYesYes—YesYes
ElevenLabsYes—YesYes—YesYes
Cartesia——YesYes—Yes—
AssemblyAIYesYes———YesYes
Google CloudYesYesYes——YesYes
Azure SpeechYesYesYesYes—YesYes
AWSYesYesYesYes—YesYes
GladiaYesYes———YesYes
SpeechmaticsYesYes———YesYes
Rime——YesYes———
MockYesYesYesYesYesYesYes

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

Esc

Loading…

↑↓ navigate openCtrl J preview