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

# Word timestamps

> Get exact per-word start and end times with your synchronous transcript.

The `timestamps` field controls whether each word in the response carries `start` and `end` times (in milliseconds, relative to the start of the audio).

* Value: a boolean, default `false`
* `false` (default): no timestamps are computed, and `start`/`end` are omitted from the `words` objects (`None` on each `SyncWord` in the Python SDK) — there is no extra processing cost
* `true`: exact timings are computed for each word, at an additional latency cost

> [!NOTE]
>
> Timings are exact or absent, never approximate: any word that can't be aligned has `start`/`end` omitted rather than estimated. Timestamp accuracy is best for English audio.

> [tab] Python SDK
>
> ```python theme={null}
> from assemblyai.sync.v1 import SyncTranscriber, SyncTranscriptionConfig
>
> config = SyncTranscriptionConfig(model="universal-3-6-pro", timestamps=True)
>
> transcriber = SyncTranscriber(api_key="<YOUR_API_KEY>", config=config)
> transcriber.warm()  # open the connection ahead of the request
> result = transcriber.transcribe("sample.wav")
> for word in result.words:
>     print(f"{word.start} - {word.end}  {word.text}")
> ```

> [tab] JavaScript SDK
>
> ```javascript theme={null}
> import { AssemblyAI } from "assemblyai";
>
> const client = new AssemblyAI({ apiKey: process.env.ASSEMBLYAI_API_KEY });
>
> await client.sync.warm(); // open the connection ahead of the request
> const result = await client.sync.transcribe("sample.wav", {
>   model: "universal-3-6-pro",
>   timestamps: true,
> });
> for (const word of result.words) {
>   console.log(`${word.start} - ${word.end}  ${word.text}`);
> }
> ```

> [tab] Python
>
> ```python theme={null}
> import json
> import requests
>
> with open("sample.wav", "rb") as f:
>     audio = f.read()
>
> config = {"timestamps": True}
>
> response = requests.post(
>     "https://sync.assemblyai.com/v1/transcribe",
>     headers={
>         "Authorization": "<YOUR_API_KEY>",
>         "X-AAI-Model": "universal-3-6-pro",
>     },
>     files={
>         "audio": ("sample.wav", audio, "audio/wav"),
>         "config": (None, json.dumps(config), "application/json"),
>     },
>     timeout=60,
> )
> response.raise_for_status()
> for word in response.json()["words"]:
>     print(f'{word["start"]:>6} - {word["end"]:>6}  {word["text"]}')
> ```

> [tab] JavaScript
>
> ```javascript theme={null}
> import { readFileSync } from "fs";
>
> const audio = readFileSync("sample.wav");
> const config = { timestamps: true };
>
> const form = new FormData();
> form.append("audio", new Blob([audio], { type: "audio/wav" }), "sample.wav");
> form.append(
>   "config",
>   new Blob([JSON.stringify(config)], { type: "application/json" })
> );
>
> const response = await fetch("https://sync.assemblyai.com/v1/transcribe", {
>   method: "POST",
>   headers: {
>     Authorization: "<YOUR_API_KEY>",
>     "X-AAI-Model": "universal-3-6-pro",
>   },
>   body: form,
> });
>
> const result = await response.json();
> for (const word of result.words) {
>   console.log(`${word.start} - ${word.end}  ${word.text}`);
> }
> ```

> [tab] cURL
>
> ```bash theme={null}
> curl -X POST https://sync.assemblyai.com/v1/transcribe \
>   -H 'Authorization: <YOUR_API_KEY>' \
>   -H 'X-AAI-Model: universal-3-6-pro' \
>   -F 'audio=@sample.wav;type=audio/wav' \
>   -F 'config={"timestamps":true};type=application/json'
> ```

With `timestamps` enabled, each entry in `words` includes its timing:

```json theme={null}
{
  "text": "Hi, I'm calling about my Best Buy order...",
  "words": [
    { "text": "Hi",  "start": 0,   "end": 200, "confidence": 0.91 },
    { "text": "I'm", "start": 220, "end": 320, "confidence": 0.88 }
  ],
  "confidence": 0.87,
  "audio_duration_ms": 101567,
  "session_id": "eb92c4ff-4bbb-429f-9b99-7279d7fe738f"
}
```

## Combining with other features

`timestamps` composes with the other `config` fields — [prompting and keyterms](https://assemblyai.com/docs/sync-stt/prompting-and-keyterms.md), [conversation context](https://assemblyai.com/docs/sync-stt/conversation-context.md), and [language selection](https://assemblyai.com/docs/sync-stt/language-selection.md) — in the same request.
