This repository demonstrates how to capture and utilize iRacing telemetry data and send it to the OpenAI Realtime API (currently in Beta) for low-latency, multi-modal AI interactions. Instead of the older ChatCompletion endpoints, this guide uses GPT-4o Realtime models via WebRTC or WebSockets, enabling advanced features like audio output, function calling, voice activity detection, and more.
Key Objectives:
- Gather iRacing telemetry via iRSDK.
- Connect to OpenAI Realtime API using either WebRTC or WebSockets.
- Send real-time telemetry events to GPT-4o or GPT-4o-mini models.