Skip to main content
POST
AssemblyAI
Product: Visual Intelligence — Audio File Transcription Use case: Transcribe an uploaded audio/video file to text — async batch or sync, multiple providers (Whisper, ElevenLabs, AssemblyAI) with optional speaker labels. For live streams, see Live Audio Transcription. Host: https://mavi-backend.memories.ai/serve/api/v2 Auth: Authorization: sk-mavi-... (no Bearer prefix)
Uses AssemblyAI Universal-2 model. Submits a job and polls until completion, then returns the full result.
Pricing: $0.15/hour of audio, billed by actual audio duration (in seconds).

Audio Source

You must provide one of the following (priority: asset_id > url > source_url).

Parameters

Authorization
string
required
API key for authentication (e.g. sk-mavi-...).
provider
string
required
STT provider. Must be assemblyai.
asset_id
string
The unique identifier of an uploaded audio/video asset (e.g. re_xxx). Resolved to a signed GCS URL.
url
string
A publicly accessible audio URL.
source_url
string
A gs:// GCS path or public HTTP URL. GCS paths are converted to signed URLs automatically.
language_code
string
Language code (ISO 639-1, e.g. en, zh). If omitted, the provider auto-detects the language.
punctuate
boolean
default:"true"
Add punctuation.
format_text
boolean
default:"true"
Format numbers, dates, etc.
speaker_labels
boolean
Enable speaker diarization.
speakers_expected
integer
Expected number of speakers.
language_detection
boolean
Enable automatic language detection.
language_confidence_threshold
number
Confidence threshold for language detection (0.0–1.0).
speech_model
string
Speech recognition model to use.
speech_threshold
number
Speech confidence threshold (0.0–1.0).
disfluencies
boolean
Include disfluencies (um, uh, etc.).
sentiment_analysis
boolean
Enable sentiment analysis per utterance.
entity_detection
boolean
Enable entity detection (names, locations, etc.).
auto_highlights
boolean
Automatically highlight key phrases.
content_safety
boolean
Enable content safety detection.
iab_categories
boolean
Enable IAB topic categorization.
auto_chapters
boolean
Automatically generate chapters.
summarization
boolean
Enable summarization.
summary_model
string
Summarization model: informative or conversational.
summary_type
string
Summary format: bullets, bullets_verbose, headline, paragraph, or gist.
redact_pii
boolean
Enable PII redaction.
redact_pii_policies
string[]
PII types to redact (e.g. email_address, phone_number, person_name).
redact_pii_sub
string
PII replacement strategy: hash or entity_name.
redact_pii_audio
boolean
Redact PII from audio output.
redact_pii_audio_quality
string
Redacted audio quality: mp3 or wav.
filter_profanity
boolean
Filter profanity from transcript.
word_boost
string[]
List of words to boost recognition.
boost_param
string
Boost strength: low, default, or high.
custom_spelling
object[]
Custom spelling corrections.
webhook_url
string
AssemblyAI webhook callback URL.
multichannel
boolean
Enable multi-channel transcription.
audio_start_from
integer
Start transcription from this time (milliseconds).
audio_end_at
integer
End transcription at this time (milliseconds).
custom_topics
boolean
Enable custom topic detection.
topics
string[]
Custom topic labels.

Code Examples

Response

Response Parameters

Timestamps are in milliseconds (e.g. 520).