Prerequisites
- Python 3.10 or later.
- An OpenAI API key in
OPENAI_API_KEYfor real audio runs. - A meeting recording in a supported audio format for real audio runs.
- Audio uploads must be 25 MB or smaller. Supported input formats are
mp3,mp4,mpeg,mpga,m4a,wav, andwebm. - Optional: up to four short, single-speaker reference clips. The speech-to-text guide recommends 2-10 second references, encoded as data URLs when sent with multipart form data.
Run the notebook locally
From a local clone of the Cookbook repository, create a virtual environment, install Jupyter and the OpenAI SDK, then launch this notebook:
bash
git clone https://github.com/openai/openai-cookbook.git
cd openai-cookbook
python3 -m venv .venv
source .venv/bin/activate
python -m pip install jupyter "openai>=1.93.0"
export OPENAI_API_KEY="your-api-key"
jupyter notebook examples/audio/speaker_aware_meeting_intelligence/speaker_aware_meeting_intelligence.ipynbThe synthetic demo below uses only the Python standard library and does not call the API. For real audio, you can also install the OpenAI SDK from inside an existing notebook environment:
python
%pip install "openai>=1.93.0"