Beginner · 20 min
Store call audio, transcripts and embeddings so a voice agent can retrieve them
Keep the recording, the transcript, and the embeddings on one table so a voice agent can retrieve a later call by meaning and land on the call id plus seconds. Store the file as an Audio column with call metadata, transcribe with Whisper or a hosted speech-to-text API, split into timestamped segments, and index the text. Pixeltable is the unified multimodal AI backend for that store; it is not a voice-agent platform like Vapi or Retell.
The Challenge
Voice-agent builders are told to stitch S3 (or another bucket) for the recording, Postgres plus pgvector or a dedicated vector engine (Qdrant, Pinecone, Weaviate) for embeddings, and a queue to run Whisper or a hosted STT API. The agent then has to join a vector hit back to a call id and a timestamp you stored by hand. Voice platforms such as Vapi and Retell store recordings as part of the call product; they are not an owned table of audio, transcripts, and embeddings you query later. Call-center, meeting, and support recordings have the same ASR-pipeline shape.
The Solution
One table holds the call recording (Audio), metadata (call id, agent, customer, timestamps), a transcript computed column (whisper.transcribe locally, openai.transcriptions for a hosted OpenAI model, or a UDF you write for Deepgram, AssemblyAI, or another STT vendor), timestamped segments from audio_splitter, an embedding index on segment text, and an optional LLM summary. The agent retrieves by similarity and gets back the call id plus segment_start in seconds. Insert a new recording and only that file is transcribed. Pixeltable is not Vapi or Retell; keep those when the voice platform is the contract, and land their recording on this table when you need retrieval you own.
Implementation Guide
Step-by-step walkthrough with code examples
Store the recording and call metadata
Each call is a row: typed Audio plus the ids a later retrieval must return. Apply with pxt schema update; do not call create_table at import.
1import pixeltable as pxt2from pixeltable.functions.audio import audio_splitter3from pixeltable.functions.huggingface import sentence_transformer4from pixeltable.functions.whisper import transcribe56TableModel = pxt.model_base()7text_embed = sentence_transformer.using(model_id='all-MiniLM-L6-v2')89class Recordings(TableModel, name='recordings'):10 call_id: pxt.String11 agent: pxt.String12 customer: pxt.String13 started_at: pxt.Timestamp14 audio: pxt.Audio
Where call audio, transcripts, and embeddings live
| Job | S3 + Postgres/pgvector + Qdrant/Pinecone/Weaviate + queue | Voice platform (Vapi, Retell) | Pixeltable |
|---|---|---|---|
| Store the recording | Object storage plus a metadata database | The platform stores the call as part of the product | An Audio column on a table you own |
| Transcribe | A worker calls Whisper or a hosted STT API | Vendor transcription, if that product includes it | whisper.transcribe, openai.transcriptions, or a UDF you write |
| Timestamps | You store offsets next to the vector by hand | Vendor-dependent | segment_start and segment_end on the splitter view |
| Embeddings and retrieval | pgvector or a dedicated vector engine you keep aligned | Not an owned index of your calls | EmbeddingIndex on segment text; similarity returns call id + seconds |
| New call | Enqueue a task; retry the DAG | The next call on that platform | Insert a row; only that file is transcribed and indexed |
Key Benefits
Real Applications
Prerequisites
How-to guides
Learn More
A speech-recognition model family that writes a transcript
Runtime, timestamps, speakers, and where the file may go
audio_splitter, Whisper, EmbeddingIndex, FastAPIRouter
A vector for similar speech, not only exact words
Docs: local openai-whisper on an Audio column
Docs: alignment and pyannote diarization
Whisper on insert is an AI automation workflow
Recordings, transcripts, and search as a product shape
Related Guides
- Video Intelligence Pipeline: Extract, Enrich, and Search Video at Scale
Modality: Video
Computed column: frame_iterator view, then model columns on each frame
Docs - Build a Video Search Engine in Python
Modality: Video
Computed column: frame_iterator, CLIP EmbeddingIndex, FastAPIRouter /search
Docs - AI Agents & MCP: Give Your Agents Persistent Multimodal Memory
Modality: Agent state
Computed column: Tool results stored as computed columns on the row
Docs
Frequently asked questions
How do I add speaker diarization?
Can the agent retrieve the exact moment in a call?
How are API calls rate-limited when I transcribe thousands of calls?
Can I use Deepgram or AssemblyAI instead of Whisper?
Do I still need Vapi or Retell?
What happens when a new call arrives?
Ready to get started?
Install Pixeltable and start building in minutes. One Python file for tables, indexes, and HTTP.