> For the complete documentation index, see [llms.txt](https://docs.unitlab.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.unitlab.ai/documentation/annotations/audio-annotation.md). Agents can also search and read this documentation through its [MCP server](https://docs.unitlab.ai/~gitbook/mcp).

# Audio Annotation

Label speakers, transcripts, translations, sound events, and recording-level classes on the audio waveform and spectrogram.

Draw intervals on the waveform to mark who speaks or what sound happens, and when. Each interval gets a class, a **Transcript**, and any properties your ontology adds. Item properties describe the whole recording.

![A robot cell briefing with four speakers, and the Overview table listing every interval with its transcript and timing](https://292810646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGjVLUz4wthGkGlRKM6rM%2Fuploads%2FQHHgKnwubWKhHkIACgLj%2Fta-audio-speakers-overview.webp?alt=media)

## What you can build

The ontology decides the use case. The same editor covers all of these:

| Use case                               | Ontology you need                                 | Example below          |
| -------------------------------------- | ------------------------------------------------- | ---------------------- |
| Speaker identification and diarization | One event class per speaker or role               | Robot cell briefing    |
| Speech-to-text (STT)                   | The **Transcript** on each speech class           | Robot cell briefing    |
| Speech translation                     | A text property on the speech class               | Spanish shift handover |
| Sound event detection                  | One event class per sound, Transcript optional    | Robot cell sounds      |
| Audio classification                   | Item properties (scene, state, language, quality) | Robot cell sounds      |

## The audio editor

| Control              | What it does                                         | Shortcut                    |
| -------------------- | ---------------------------------------------------- | --------------------------- |
| **Interval** tool    | Drag on the waveform to create an interval.          | `R`                         |
| **Pan** tool         | Select and move intervals without creating new ones. | `V`                         |
| **Play / Pause**     | Play from the playhead.                              | `Space`                     |
| **Rewind / Forward** | Step back or ahead.                                  | `Shift` + `←` / `→`         |
| **Spectogram**       | Show frequencies under the waveform.                 | `S`                         |
| **Speed**            | Slow down fast speech, for example 0.5x.             | `Alt` + `←` / `→`           |
| **Zoom**             | Stretch the timeline to place boundaries precisely.  | `Ctrl` + `O` / `Ctrl` + `I` |
| **Loop**             | Repeat playback.                                     | `L`                         |

The side panel has three tabs:

* **Interval**: the classes, and the **Transcript** and properties of the selected interval.
* **Overview**: a table of every interval with its speaker, transcript, start, end, and duration.
* **Item Property**: values for the whole recording.

## Use case: speaker identification and transcripts

A robot cell team records its start-of-shift briefing. They need who spoke when, and what they said, to train a voice assistant for the cell.

**Ontology**

| Element         | Setting                                                                                               |
| --------------- | ----------------------------------------------------------------------------------------------------- |
| Event classes   | Operator, Supervisor, Robot assistant, Shift lead. Each gets a required **Transcript** automatically. |
| Item properties | Language, Audio quality (Clean, Background noise, Clipped), Overlapping speech (Yes, No)              |

{% stepper %}
{% step %}

### Mark each speaker turn

Press `R`, choose the speaker class in **Interval classes**, and drag across one turn. Zoom in and drag the edges so no word is cut off.
{% endstep %}

{% step %}

### Type the transcript

With the interval selected, type the spoken words in **Transcript**. Use `Space` and a slower speed to check each word.
{% endstep %}

{% step %}

### Keep overlaps

When two people talk at once, draw one interval for each. The intervals overlap in time, and each keeps its own transcript.
{% endstep %}

{% step %}

### Check the whole file

Open **Overview**. Read down the table for gaps, wrong speakers, or empty transcripts. Then set the **Item Property** values.
{% endstep %}
{% endstepper %}

Use one class per speaker when the speakers are known roles. When speakers are anonymous, use one **Speech** class with a **Speaker** property (Speaker 1, Speaker 2, and so on).

## Use case: speech translation

The night shift lead hands over in Spanish. The team keeps the Spanish transcript and adds an English translation for each turn.

**Ontology**: add a text property **English translation** to the **Shift lead** class, next to its **Transcript**.

![A selected Spanish turn with its Transcript and English translation in the Interval tab](https://292810646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGjVLUz4wthGkGlRKM6rM%2Fuploads%2FZCboumYmCVoWn0XQ3gKn%2Fta-audio-interval-translation.webp?alt=media)

1. Draw the turn and type the Spanish words in **Transcript**.
2. Type the English text in **English translation**, under **Interval categories**.
3. Set **Language** to **Spanish** in **Item Property**.

## Use case: sound events and audio classification

A robot cell is recorded to train a fault detector. Every sound gets an interval, and the recording gets a scene and a cell state.

**Ontology**

| Element         | Setting                                                                                            |
| --------------- | -------------------------------------------------------------------------------------------------- |
| Event classes   | Conveyor running, Arm motion, Gripper actuation, Part dropped, Safety alarm, Robot announcement    |
| Class property  | **Alarm type** on Safety alarm: Warning, Emergency stop                                            |
| Transcript      | Optional on every class except Robot announcement                                                  |
| Item properties | Acoustic scene (Factory floor, Warehouse, Outdoor yard, Lab), Cell state (Normal operation, Fault) |

![Sound event intervals over the spectrogram, with Acoustic scene and Cell state set in Item Property](https://292810646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGjVLUz4wthGkGlRKM6rM%2Fuploads%2FrrrFZZLmLKfIziMjtUU2%2Fta-audio-sound-events-spectrogram.webp?alt=media)

1. Press `S` to show the **Spectogram**. Short clicks and alarms stand out as vertical lines and bands.
2. Draw an interval for each sound. A long sound, like the conveyor, can span other events.
3. Pick **Alarm type** for each **Safety alarm**.
4. Open **Item Property** and set **Acoustic scene** and **Cell state**.

For whole-file classification only (for example, normal or faulty), skip the intervals and set the item properties.

{% hint style="info" %}
To make **Transcript** optional for non-speech classes, open the class in the ontology and turn off **Required** on its Transcript property.
{% endhint %}

## Review one interval on repeat

Open **View settings** > **Playback** and turn on **Loop regions**. Click play inside an interval to repeat only that range while you adjust its edges. **Loop audio** repeats the whole file instead.

![Audio Playback settings with Loop regions on and Loop audio off](https://292810646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGjVLUz4wthGkGlRKM6rM%2Fuploads%2FgdjW8wUSEyZuzq9iHe39%2Faudio-loop-settings.webp?alt=media)

## Tips

* Agree on rules for silence at the edges, filler words, and unclear speech before you start.
* Times are saved in seconds. Zoom changes only the view.
* Use a property for a value that changes per turn (language, emotion). Use item properties for the whole file.
* A hosted speech model can label audio before people do, in a workflow **Model** stage. Review its intervals like manual ones.

<details>

<summary>About the demo recordings</summary>

The speech in these examples was generated with the open-source Kokoro text-to-speech model (Apache-2.0), so every transcript is exact. The cell sounds were synthesized. No real people or production cells were recorded.

</details>

## Related

[Text Annotation](https://docs.unitlab.ai/documentation/annotations/text-annotation.md) · [Properties, relations, and Item Properties](https://docs.unitlab.ai/documentation/ontologies/properties-relations-and-item-properties.md) · [Multimodal overview](https://docs.unitlab.ai/documentation/multimodal-annotations/multimodal-overview.md) · [Annotation Workbench](https://docs.unitlab.ai/documentation/annotations/annotation-workbench.md)
