Registers OpenAI's gpt-realtime WebSocket API as a voice runtime provider for real-time conversational AI with audio streaming.
// Source: https://github.com/agenticmail/agenticmail | License: MIT | Copyright 2026 Ope Olatunji
// Provided via justclaw.it.com; keep this notice with the code.
/**
* OpenAI Realtime — the original, baseline voice-runtime provider.
*
* Wire protocol: the GA `gpt-realtime` WebSocket spec. session.update,
* response.create, conversation.item.input_audio_transcription.completed,
* input_audio_buffer.append, etc.
*
* Docs: https://platform.openai.com/docs/guides/realtime
*/
import { registerVoiceProvider } from './registry.js';
registerVoiceProvider({
id: 'openai',
displayName: 'OpenAI Realtime (gpt-realtime)',
websocketBaseUrl: 'wss://api.openai.com/v1/realtime',
defaultModel: 'gpt-realtime',
apiKeyEnvVar: 'OPENAI_API_KEY',
// Legacy: the original config.json schema u
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key