Orchestrates bidirectional audio streaming between telephony and AI providers.
// Source: https://github.com/TristanBrotherton/openclaw-voice-call-realtime | License: MIT | Copyright 2026 OpenClaw Foundation (original voice-call plugin)
// Provided via justclaw.it.com; keep this notice with the code.
import type {
RealtimeConversationSession,
RealtimeToolHandler,
OpenAIRealtimeConversationProvider,
} from "./openai-realtime-conversation.js";
import type { EffectiveRealtimePolicy } from "../device-policy.js";
type ManagedRealtimeState = "idle" | "connecting" | "active" | "closing" | "closed";
type LifecycleEvent = {
type:
| "realtime.connect.start"
| "realtime.connect.ok"
| "realtime.connect.fail"
| "realtime.reconnect.scheduled"
| "realtime.idle_timeout"
| "realtime.max_session_reached"
| "realtime.closed";
at: number;
detail
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key