For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
PlaygroundChangelogSign In
OverviewAPI ReferencePre-recorded STTStreaming STTVoice AgentsSpeech UnderstandingGuardrailsLLM GatewayFAQ
OverviewAPI ReferencePre-recorded STTStreaming STTVoice AgentsSpeech UnderstandingGuardrailsLLM GatewayFAQ
  • Getting started
    • Transcribe a pre-recorded audio file
    • Model selection
    • View model benchmarks
    • Evaluate model accuracy
    • Cloud endpoints & data residency
    • Manage concurrent requests
    • Webhooks
  • Models
    • Medical Mode
  • Features
    • Boost specific terms
    • Label speakers
    • Transcribe multiple audio channels
    • Transcribe audio with mixed languages
    • Correct spelling of terms
    • Include filler words
    • Search for words in transcript
    • Set the start and end of the transcript
      • Check transcript status
      • Export transcripts as SRT, VTT, or text
      • Delete transcripts
  • Guides
LogoLogo
PlaygroundChangelogSign In
On this page
  • Handling errors
FeaturesTranscription operations

Transcript Status

Was this page helpful?
Previous

Transcript export options

Next
Built with

After you’ve submitted a file for transcription, your transcript has one of the following statuses:

StatusDescription
processingThe audio file is being processed.
queuedThe audio file is waiting to be processed.
completedThe transcription has completed successfully.
errorAn error occurred while processing the audio file.

Handling errors

If the transcription fails, the status of the transcript is error, and the transcript includes an error property explaining what went wrong.

1import assemblyai as aai
2
3aai.settings.api_key = "<YOUR_API_KEY>"
4
5# audio_file = "./local_file.mp3"
6audio_file = "https://assembly.ai/wildfires.mp3"
7
8config = aai.TranscriptionConfig(
9 speech_models=["universal-3-pro", "universal-2"],
10 language_detection=True
11)
12
13transcript = aai.Transcriber().transcribe(audio_file, config)
14
15if transcript.status == aai.TranscriptStatus.error:
16 print(f"Transcription failed: {transcript.error}")
17 exit(1)
18
19print(transcript.text)

A transcription may fail for various reasons:

  • Unsupported file format
  • Missing audio in file
  • Unreachable audio URL

If a transcription fails due to a server error, we recommend that you resubmit the file for transcription to allow another server to process the audio.

Why am I receiving a "400 Bad Request" error when making an API request?

A “400 Bad Request” error typically indicates that there’s a problem with the formatting or content of the API request. Double-check the syntax of your request and ensure that all required parameters are included as described in the API reference. If the issue persists, contact our support team for assistance.