Skip to content

Beginner · 15 min

Audio Transcription Pipeline with OpenAI Whisper

Transcribe audio files at scale with Pixeltable and OpenAI Whisper. Concurrent, rate-limited requests, retries, and incremental processing.

The Challenge

Transcribing large volumes of audio requires complex orchestration: file handling, API rate limiting, error retries, parallel processing, and result storage across separate systems.

The Solution

Pixeltable automates the entire transcription workflow. Add audio files to a table, and Whisper transcription runs as a computed column: each file is a concurrent request, paced to OpenAI rate limits and retried on 429.

Implementation Guide

Step-by-step walkthrough with code examples

Step 1 of 2

Audio Table

Create a table for audio files with automatic transcription.

python
1import pixeltable as pxt
2from pixeltable.functions import openai
3
4# Audio processing table
5audio = pxt.create_table('app.audio', {
6 'audio_file': pxt.Audio,
7 'title': pxt.String,
8 'speaker': pxt.String,
9})
10
11# Automatic Whisper transcription
12audio.add_computed_column(
13 transcript=openai.transcriptions(
14 audio=audio.audio_file,
15 model='whisper-1'
16 )
17)
18
19# Insert files: transcription runs automatically
20audio.insert([
21 {'audio_file': '/recordings/meeting_01.mp3',
22 'title': 'Team Standup', 'speaker': 'All'},
23])
Every audio file is transcribed automatically on insert. The transcript is stored with the row, so queries read it without transcribing again.

Key Benefits

Less transcription pipeline code to maintain
Built-in rate limiting and error handling
Scales from single files to thousands automatically
Incremental: only new audio files are transcribed

Real Applications

Podcast transcription and search
Meeting recording analysis
Customer call center analytics
Lecture and training content indexing

Prerequisites

Basic Python programming
OpenAI API key
Python 3.9+
OpenAI API key with Whisper access

How-to guides

Ready to get started?

Install Pixeltable and start building in minutes. One Python file for tables, indexes, and HTTP.