Skip to main content

Documentation Index

Fetch the complete documentation index at: https://assemblyai.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

The disfluencies parameter is supported on Universal-3 Pro and Universal-2. With Universal-3 Pro, you can also preserve filler words via prompting for finer-grained control — see Verbatim transcription and disfluencies.


US & EU
The following filler words are removed by default:
  • “um”
  • “uh”
  • “hmm”
  • “mhm”
  • “uh-huh”
  • “ah”
  • “huh”
  • “hm”
  • “m”
If you want to keep filler words in the transcript, you can set the disfluencies to true in the transcription config.
import assemblyai as aai

aai.settings.api_key = "<YOUR_API_KEY>"

# audio_file = "./local_file.mp3"
audio_file = "https://assembly.ai/wildfires.mp3"

config = aai.TranscriptionConfig(
    speech_models=["universal-3-pro", "universal-2"],
    language_detection=True,
    disfluencies=True
)

transcript = aai.Transcriber(config=config).transcribe(audio_file)

if transcript.status == "error":
  raise RuntimeError(f"Transcription failed: {transcript.error}")

print(transcript.text)