Demo code used in the Realtime API Build Hours.
Both examples shown during the build hours were created from scratch or a template – here we are providing the completed version.
We strongly recommend you start new project from scratch or a template, not these examples directly!
realtime-from-scratch
: bare-bones example of an audio assistant, built from a fresh NextJS project
To try it yourself from scratch, set up a new NextJS project with:
npx create-next-app@latest
openai-realtime-console-example
: example of long-running functions, built on top of the realtime console
To try it yourself from the console, clone the OpenAI Realtime Console:
git clone https://github.com/openai/openai-realtime-console.git