This demo demonstrates how to build a Voice AI agent using the OpenAI Agent SDK.
To set up the application, install the OpenAI Agent SDK along with its dependencies for voice processing:
pip install "openai-agents[voice]"Next, install the sounddevice library for handling audio input and output:
pip install sounddeviceThen, set your OpenAI API key as an environment variable:
export OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxOnce the setup is complete, start the Voice AI agent by running:
python main.pyThis will launch the agent, allowing you to interact with it using your voice.