Overview
Transcripts and embeddings for video and audio content are generated automatically as part of video processing. No API call is needed to start them.
When a transcoder droplet finishes transcoding a video, it extracts the audio, generates a transcript via AI, and stores related data (including embeddings) for search and context retrieval in the Vector Database (Qdrant). Transcript failures never fail the transcode job.
Workflow
- Transcode: a transcoder droplet picks up a pending
TranscodeAttemptfrom the database. - Transcript generation: after transcoding it runs audio extraction, transcript generation using OpenAI, and embedding creation and storage in Qdrant.
- Status Tracking: each transcript record is stored in
ContentTranscriptwith astatus(e.g.pending,completed, orfailed).
Environment Requirements
| Variable | Description |
|---|---|
REACT_APP_ENABLE_TRANSCRIPTS_GENERATION | Must be "true" for the dashboard to show transcript status. Generation on the transcoder droplets does not check it |
OPENAI_API_KEY | API key used to generate transcripts and embeddings |
Endpoints Summary
| Endpoint | Method | Description |
|---|---|---|
/api/transcript/status | GET | Aggregate transcript counts and configuration flags |
/api/transcript/:contentId | GET | Admin only: the transcript for a content item |