This is a WebRTC-based Voice AI stream application using OpenAI's Realtime API and WebRTC. Project contains /api route and UI components developed with Next.js and shadcn/ui. It supports real-time audio conversations implented in skrivov/openai-voice-webrtc-next with the addition of a hook to abstract the WebRTC handling.
https://github.com/user-attachments/assets/ea9324af-5c18-48d2-b980-2b81baeea4c0
getCurrentTime, partyMode, changeBackground, launchWebsite, copyToClipboard, scrapeWebsite (requires FireCrawl API key).env filegit clone https://github.com/cameronking4/openai-realtime-api-nextjs.git
cd openai-realtime-api-nextjs
Create a .env file in the root directory:
OPENAI_API_KEY=your-openai-api-key
If using Node.js:
npm install
If using Deno:
deno install
npm run dev
deno task start
The application will be available at http://localhost:3000.
http://localhost:3000.Deploy in one-click
This project is licensed under the MIT License. See the LICENSE file for details.
$ claude mcp add openai-realtime-api-nextjs \
-- python -m otcore.mcp_server <graph>