# Keep a recording's transcript (/build/keep-a-recordings-transcript)

Save what is said in a recording as a WebVTT file that keeps the time of each line, and link it to the recording it came from.



**A transcript is a file item of its own,** not a field of the recording and not its `extracted_text`. It holds a WebVTT file, so each line keeps its time and a player can jump to it. Every app and agent keeps a transcript this way, as the guidance of `core.file` and `core.file.audio` says. **You need** a credential that writes `core.file` items and `derived-from` edges.

## Add the WebVTT file [#add-the-webvtt-file]

Add the transcript as a `core.file` item with `mime_type` `text/vtt`. The CLI, a synced folder and a working copy give a `.vtt` file that type when you name none:

```bash
marfa items add interview-2026-11-12.vtt
```

Over HTTP, [upload the bytes and create the item](/build/files-upload-download) with `"mime_type": "text/vtt"`.

## Link it to the recording [#link-it-to-the-recording]

Add a `derived-from` edge from the transcript to its recording, a `core.file.audio` item:



**CLI**

```bash  
marfa edges create --from-id <transcript-id> --to-id <recording-id> --type derived-from
```

**HTTP**

```http
POST /edges
Authorization: Bearer <key>
Content-Type: application/json

{
  "edge_type": "derived-from",
  "from_id": "<transcript-id>",
  "to_id": "<recording-id>"
}
```

`marfa items edges <transcript-id>` then lists the edge.

## What happens to it later [#what-happens-to-it-later]

**The transcript stays when its recording is deleted or purged.** A transcript with no recording at all, such as one an import brings on its own, is fine. The rules are in the contract's [edges](https://github.com/withmarfa/marfa/blob/main/conformance/spec/edges.md#a-recordings-transcript) chapter.
