> ## 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.

# Verbatim

Verbatim transcription captures speech exactly as it was said, including hesitations and other natural speech patterns.

The `disfluencies` parameter controls whether this speech is kept in the transcript.

## Defaults by model

The filler word default depends on the speech model. AssemblyAI-STT-3.7 keeps filler words by default. Universal-3.5 Pro, Universal-3 Pro, and Universal-2 remove them by default. To get the same behavior on every model, set `disfluencies` explicitly.

| Model | Default when `disfluencies` isn't set |
| - | - |
| AssemblyAI-STT-3.7 (`assemblyai-stt-3-7`) | **Kept** (`true`) |
| Universal-2 (`universal-2`) | **Removed** (`false`) |

If `speech_models` includes `assemblyai-stt-3-7` in any position, `disfluencies` defaults to `true` for the whole request, even when another model is listed first or transcribes the audio. For example, `["universal-2", "assemblyai-stt-3-7"]` defaults to `true`. If `speech_models` doesn't include `assemblyai-stt-3-7`, the default comes from the first model in the list.

## Include verbatim speech

Set `disfluencies` to `true` in your transcription config to keep verbatim speech. You need to set it when `speech_models` doesn't include `assemblyai-stt-3-7`, for example `["universal-2"]`.

What `disfluencies: true` preserves depends on the model:

| Model | What's preserved |
| - | - |
| AssemblyAI-STT-3.7 | Filler words (such as "um" and "uh"), repetitions, stutters, false starts, and informal contractions (such as "gonna" and "kinda") |
| Universal-2 | Filler words only |

```python title="Python SDK" highlight={6}  theme={null}
from assemblyai.prerecorded.v2 import Transcriber, TranscriptionConfig

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

config = TranscriptionConfig(
    language_detection=True,
    disfluencies=True
)

transcriber = Transcriber(api_key="<YOUR_API_KEY>", config=config)
transcript = transcriber.transcribe(audio_file)

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

print(transcript.text)
```

```python title="Python" highlight={19}  expandable theme={null}
import requests
import time

base_url = "https://api.assemblyai.com"

headers = {
    "authorization": "<YOUR_API_KEY>"
}

with open("./my-audio.mp3", "rb") as f:
  response = requests.post(base_url + "/v2/upload",
                          headers=headers,
                          data=f)

upload_url = response.json()["upload_url"]

data = {
    "audio_url": upload_url, # You can also use a URL to an audio or video file on the web
    "language_detection": True,
    "disfluencies": True
}

url = base_url + "/v2/transcript"
response = requests.post(url, json=data, headers=headers)

transcript_id = response.json()['id']
polling_endpoint = base_url + "/v2/transcript/" + transcript_id

while True:
  transcription_result = requests.get(polling_endpoint, headers=headers).json()

  if transcription_result['status'] == 'completed':
    print(f"Transcript ID: {transcript_id}")
    break

  elif transcription_result['status'] == 'error':
    raise RuntimeError(f"Transcription failed: {transcription_result['error']}")

  else:
    time.sleep(3)

```

```javascript title="JavaScript SDK" highlight={12}  expandable theme={null}
import { AssemblyAI } from "assemblyai";

const client = new AssemblyAI({
  apiKey: "<YOUR_API_KEY>",
});

// const audioFile = './local_file.mp3'
const audioFile = "https://assembly.ai/wildfires.mp3";

const params = {
  audio: audioFile,
  language_detection: true,
  disfluencies: true,
};

const run = async () => {
  const transcript = await client.transcripts.transcribe(params);

  console.log(transcript.text);
};

run();
```

```javascript title="JavaScript" highlight={19}  expandable theme={null}
import fs from "fs-extra";

const baseUrl = "https://api.assemblyai.com";

const headers = {
  authorization: "<YOUR_API_KEY>",
};

const path = "./my-audio.mp3";
const audioData = await fs.readFile(path);
let res = await fetch(`${baseUrl}/v2/upload`, {
  method: "POST",
  headers,
  body: audioData,
});
if (!res.ok) throw new Error(`Error: ${res.status}`);
const uploadResponse = await res.json();
const uploadUrl = uploadResponse.upload_url;

const data = {
  audio_url: uploadUrl, // You can also use a URL to an audio or video file on the web
  language_detection: true,
  disfluencies: true,
};

const url = `${baseUrl}/v2/transcript`;
res = await fetch(url, {
  method: "POST",
  headers: { ...headers, "Content-Type": "application/json" },
  body: JSON.stringify(data),
});
if (!res.ok) throw new Error(`Error: ${res.status}`);
const response = await res.json();

const transcriptId = response.id;
const pollingEndpoint = `${baseUrl}/v2/transcript/${transcriptId}`;

while (true) {
  res = await fetch(pollingEndpoint, { headers });
  if (!res.ok) throw new Error(`Error: ${res.status}`);
  const transcriptionResult = await res.json();

  if (transcriptionResult.status === "completed") {
    console.log(transcriptionResult.text);
    break;
  } else if (transcriptionResult.status === "error") {
    throw new Error(`Transcription failed: ${transcriptionResult.error}`);
  } else {
    await new Promise((resolve) => setTimeout(resolve, 3000));
  }
}
```

## Reduce filler words on AssemblyAI-STT-3.7

AssemblyAI-STT-3.7 keeps filler words unless you turn them off. Set `disfluencies` to `false` to reduce them:

```json theme={null}
{
  "audio_url": "https://assembly.ai/wildfires.mp3",
  "speech_models": ["assemblyai-stt-3-7"],
  "disfluencies": false
}
```

> [!NOTE]
>
> On AssemblyAI-STT-3.7, `disfluencies: false` currently removes most filler words, but not all of them. How many remain varies with the audio and with other request parameters, such as `keyterms_prompt`. If you need filler-free text, filter the remaining fillers in post-processing. We're currently working on a fix that removes them more consistently.

## Supported languages

Verbatim output (`disfluencies: true`) is supported in the following languages:

| Model | Supported languages |
| - | - |
| AssemblyAI-STT-3.7 | All [32 supported languages](https://assemblyai.com/docs/pre-recorded-audio/supported-languages.md#assemblyai-stt-3-7): English, Spanish, German, French, Portuguese, Italian, Afrikaans, Arabic, Cantonese, Catalan, Danish, Dutch, Estonian, Finnish, Galician, Hebrew, Hindi, Japanese, Korean, Mandarin, Marathi, Norwegian, Norwegian Nynorsk, Persian, Romanian, Russian, Swedish, Turkish, Urdu, Vietnamese, Xhosa, Zulu |
| Universal-2 | English only |
