Filler words

Global Englishen
Australian Englishen_au
British Englishen_uk
US Englishen_us

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.

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(disfluencies=True)
9
10transcript = aai.Transcriber(config=config).transcribe(audio_file)
11
12if transcript.status == "error":
13 raise RuntimeError(f"Transcription failed: {transcript.error}")
14
15print(transcript.text)