Transcribe dictated audio
Authorizations
Your AssemblyAI API key, sent as the raw key with no Bearer prefix. An invalid key returns 404, not 401.
Body
Transcription and rewrite configuration. Must be the first part, ahead of audio. Send an empty object ({}) to transcribe with defaults, including the default rewrite. Unknown fields are forwarded to the transcription engine as-is, so transcription parameters added in future work without dictation-side changes.
Audio bytes, at most 120 seconds. Set the part's Content-Type to audio/wav for WAV or audio/pcm for raw 16-bit PCM. Compressed formats (MP3, M4A, FLAC, OGG, WebM) are rejected with 415. The part may be uploaded in chunks as the audio is captured.
Response
Transcription completed. The rewrite is best-effort: a failed rewrite still returns 200 with the transcription, llm_response set to null, and llm_error set. Fall back to text in that case, and never treat a non-null llm_error as a failed request.
The verbatim transcript. Never altered by the LLM.
Per-word transcript objects.
Overall transcription confidence (0–1).
Duration of the submitted audio in milliseconds.
Server-generated request identifier. Include it when reporting problems.
The rewritten text, or null when the rewrite failed. Fall back to text when it is null.
Set when the rewrite failed. timeout means the rewrite passed its 5-second internal deadline. null on success.
timeout, error Total server-side processing time in milliseconds.
The transcription portion of request_time_ms, in milliseconds.