Skip to navigation

AssemblyAI

Use AssemblyAI for real-time speech-to-text in Vapi

AssemblyAI provides real-time speech-to-text and turn detection for Vapi voice agents.

Universal Pro models

Universal Pro is AssemblyAI’s flagship streaming model, purpose-built for voice agents and harsh audio environments. It has broad language coverage with native code-switching across up to 32 languages, plus conversational context features like prompting, keyterms, and agent context (passing spoken agent turns back to the model to steer transcription of the next user reply).

ModelSpeech modelLanguages
Universal 3.6 Prouniversal-3-6-pro32
Universal 3.5 Prouniversal-3-5-pro18

Universal 3.6 Pro (universal-3-6-pro) is the newest and most accurate model. It supports every Universal 3.5 Pro option and adds 14 languages.

curl -X PATCH "https://api.vapi.ai/assistant/ASSISTANT_ID" \
-H "Authorization: Bearer $VAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"transcriber": {
"provider": "assembly-ai",
"speechModel": "universal-3-6-pro",
"mode": "balanced",
"prompt": "Customer support call for a bank. Callers ask about account balances, card activation, and recent transactions.",
"languageCodes": ["en", "es"],
"keytermsPrompt": ["Acme Bank", "overdraft", "routing number"],
"agentContext": "Hi, thanks for calling Acme Bank. Can I get your account number?",
"agentContextAutoUpdateEnabled": true
}
}'

Both Universal Pro models support additional configuration:

  • mode: Trade off accuracy and latency with max_accuracy, balanced, or min_latency. Defaults to balanced.
  • prompt: Provide additional context for the transcription model, up to 1,750 characters.
  • agentContext: Provide context about the assistant that helps the transcription model interpret caller speech, up to 1,750 characters.
  • agentContextAutoUpdateEnabled: Automatically send what the assistant just said as agent context after every assistant turn. Defaults to false.
  • languageCodes: Steer automatic language detection with language codes such as ["en", "es"].
  • keytermsPrompt: Boost recognition of domain-specific terms. Included at no extra cost on the Universal Pro models.

Automatic agent context

When agentContextAutoUpdateEnabled is true, Vapi sends the assistant’s last spoken reply to AssemblyAI as agent context after every assistant turn, replacing the previous value. The caller’s answer is then transcribed in the context of the question it responds to. For example, after “What’s your email address?”, the model expects an email and formats it as one.

  • agentContext still seeds the first turn, so set it to your assistant’s first message.
  • Replies longer than 1,750 characters are trimmed to their last 1,750 characters.
  • Assistant turns the caller interrupts are not sent when the interruption is detected by voice activity (the default, stopSpeakingPlan.numWords: 0).

Universal-Streaming

Universal-Streaming is a transcription model offering a good balance of speed and cost-effectiveness. It is available in English, or multilingual across 6 languages: English, Spanish, German, French, Portuguese, and Italian.

Supported capability

CapabilityProvider value
Speech-to-textassembly-ai

Speech-to-text

Set transcriber.provider to assembly-ai. By default the universal-streaming-english speech model is used; set transcriber.speechModel to choose a different model.

curl -X PATCH "https://api.vapi.ai/assistant/ASSISTANT_ID" \
-H "Authorization: Bearer $VAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"transcriber": {
"provider": "assembly-ai",
"language": "en"
}
}'

For additional API configuration options, review the AssemblyAITranscriber fields in the Create Assistant API reference.

Configure in the dashboard

This guide details how to setup AssemblyAI as a transcriber for your assistant.

1

Head to the “Assistants” tab in your Vapi dashboard.

Click on your assistant and then the “Transcriber” tab.

Select “assembly-ai” on the Provider dropdown.

Supported languages

Vapi supports AssemblyAI’s English and multilingual Universal-Streaming modes, plus the Universal 3.5 Pro and Universal 3.6 Pro models.

ModeSpeech modelLanguage valueSupported languages
Englishuniversal-streaming-englishenEnglish
Multilingualuniversal-streaming-multilingualmultiEnglish, French, German, Italian, Portuguese, and Spanish
Universal 3.6 Prouniversal-3-6-proAutomatic32 languages with automatic language detection and code-switching
Universal 3.5 Prouniversal-3-5-proAutomatic18 languages with automatic language detection and code-switching

The Universal Pro models accept the following languageCodes values for language steering. Omit languageCodes to keep automatic detection and code-switching across all languages the selected model supports. See AssemblyAI’s language steering guide for provider guidance.

LanguageLanguage codeSupported models
AfrikaansafUniversal 3.6 Pro
ArabicarUniversal 3.5 Pro, Universal 3.6 Pro
CantoneseyueUniversal 3.6 Pro
CatalancaUniversal 3.6 Pro
DanishdaUniversal 3.5 Pro, Universal 3.6 Pro
DutchnlUniversal 3.5 Pro, Universal 3.6 Pro
EnglishenUniversal 3.5 Pro, Universal 3.6 Pro
EstonianetUniversal 3.6 Pro
FinnishfiUniversal 3.5 Pro, Universal 3.6 Pro
FrenchfrUniversal 3.5 Pro, Universal 3.6 Pro
GalicianglUniversal 3.6 Pro
GermandeUniversal 3.5 Pro, Universal 3.6 Pro
HebrewheUniversal 3.5 Pro, Universal 3.6 Pro
HindihiUniversal 3.5 Pro, Universal 3.6 Pro
ItalianitUniversal 3.5 Pro, Universal 3.6 Pro
JapanesejaUniversal 3.5 Pro, Universal 3.6 Pro
KoreankoUniversal 3.6 Pro
Mandarin ChinesezhUniversal 3.5 Pro, Universal 3.6 Pro
MarathimrUniversal 3.6 Pro
NorwegiannoUniversal 3.5 Pro, Universal 3.6 Pro
Norwegian NynorsknnUniversal 3.6 Pro
PersianfaUniversal 3.6 Pro
PortugueseptUniversal 3.5 Pro, Universal 3.6 Pro
RomanianroUniversal 3.6 Pro
RussianruUniversal 3.6 Pro
SpanishesUniversal 3.5 Pro, Universal 3.6 Pro
SwedishsvUniversal 3.5 Pro, Universal 3.6 Pro
TurkishtrUniversal 3.5 Pro, Universal 3.6 Pro
UrduurUniversal 3.6 Pro
VietnameseviUniversal 3.5 Pro, Universal 3.6 Pro
XhosaxhUniversal 3.6 Pro
ZuluzuUniversal 3.6 Pro

Keyterms prompting is supported with the universal-streaming-english, universal-3-5-pro, and universal-3-6-pro models.