Extract audio from video
Extract the audio track from video files for transcription, analysis, or processing.
Generate natural-sounding audio from text using OpenAI's text-to-speech models.
Audio · Notebook · Updated
Colab runs it in your browser. If it calls a model provider, it asks for that provider's API key in a cell.
You add a computed column that converts text to audio. The audio is cached and only regenerated when the source text changes.
pip install pixeltable openai
OPENAI_API_KEYopenai.speech()pxt.create_table()add_computed_column()insert()# Add audio generation columnarticles.add_computed_column(audio=speech(articles.content, model='tts-1', voice='alloy'))
One cell of the notebook, copied as it is. Open it in Colab for the rest.
Extract the audio track from video files for transcription, analysis, or processing.
Transcribe speech with WhisperX in Python, identify speakers, and search the transcript with word-level timestamps.
Convert speech to text locally using OpenAI's open-source Whisper model—no API key needed.
In this tutorial, we'll build an end-to-end workflow for creating and indexing audio transcriptions of video data.