---
title: "Transcribing and Indexing Audio and Video in Pixeltable"
description: "In this tutorial, we'll build an end-to-end workflow for creating and indexing audio transcriptions of video data."
url: "https://www.pixeltable.com/notebooks/audio-transcriptions"
updated: "2026-10-30"
---

# Transcribing and Indexing Audio and Video in Pixeltable

In this tutorial, we'll build an end-to-end workflow for creating and indexing audio transcriptions of video data.

- **Type:** Notebook
- **Group:** Audio

## What it covers

- Create a Table for Video Data
- Create Transcriptions
- Add an Embedding Index
- Incremental Updates
- Using the OpenAI API

## What it uses

- **Install:** `pip install pixeltable openai openai-whisper sentence-transformers spacy`
- **Environment variables it names:** `OPENAI_API_KEY`
- **Pixeltable calls:** `video.extract_audio()`, `audio.get_metadata()`, `whisper.transcribe()`, `string.string_splitter()`, `openai.transcriptions()`, `pxt.create_table()`, `pxt.create_view()`, `insert()`, `add_computed_column()`, `add_embedding_index()`

## A look at the code

```python
from pixeltable.functions.video import extract_audio

video_table.add_computed_column(
    audio=extract_audio(video_table.video, format='mp3')
)
video_table.show()
```

## Open it

- **Open in Colab:** https://colab.research.google.com/github/pixeltable/pixeltable/blob/release/docs/release/howto/use-cases/audio-transcriptions.ipynb
- **Docs page:** https://docs.pixeltable.com/howto/use-cases/audio-transcriptions
- **Source on GitHub:** https://github.com/pixeltable/pixeltable/blob/release/docs/release/howto/use-cases/audio-transcriptions.ipynb
