# GPT-Live 1 (OpenAI Live API) GPT-Live 1 handles the full-duplex spoken conversation. This integration uses **Client delegation**: Gateway sends delegated work to the configured backend Agent and returns its progress, questions, and results to the Live session. It does not use OpenAI-hosted Responses delegation. ## Configuration Edit the user configuration file shown by `qwenaudio config`: ```dotenv QWEN_AUDIO_REALTIME_PROVIDER=openai QWEN_AUDIO_REALTIME_API_KEY=your-openai-key QWEN_AUDIO_REALTIME_MODEL=gpt-live-1 QWEN_AUDIO_REALTIME_URL= QWEN_AUDIO_REALTIME_VOICE= # Example: select an installed and authenticated backend Agent. AGENT_PROTOCOL=qoder QWEN_AUDIO_AGENT_BACKEND_PERMISSION_MODE=native ``` Choose a [backend Agent](../backends/overview.md) and complete its own setup first. Delegated work requires an available backend; `none` leaves only the Live model's conversation capability, not a cloud execution fallback. | Optional setting | Default | Description | | --- | --- | --- | | `QWEN_AUDIO_REALTIME_URL` | `wss://api.openai.com/v1/live/sessions` | Live API WebSocket endpoint | | `QWEN_AUDIO_REALTIME_VOICE` | Empty | Use the service default or specify a supported voice | Select `gpt-live-1` explicitly: the `openai` provider defaults to `gpt-realtime-2.1`. The model definition selects the internal `openai-live` adapter; users do not configure the protocol separately. When editing the configuration file to switch from Realtime, clear or replace URL and voice overrides. The former `GPT_LIVE_1_DELEGATION_MODEL` setting is no longer used. Desktop exposes these settings under **Voice frontend → OpenAI → GPT-Live 1**. Restart a terminal Gateway after editing the file; for an installed service, run `qwenaudio gateway restart`. ### Optional timing settings Live streams audio and transcript fragments rather than Realtime-style turn boundaries. These settings affect local caption and playback grouping, not backend task completion. Values are milliseconds, clamped to 100–10,000; non-numeric values are ignored. | Setting | Default | Description | | --- | --- | --- | | `GPT_LIVE_1_OUTPUT_IDLE_MS` | `1500` | Output quiet period that ends a displayed answer | | `GPT_LIVE_1_WORD_GAP_MS` | `600` | Word gap that separates a new answer after an interruption | | `GPT_LIVE_1_INPUT_SEGMENT_GAP_MS` | `1200` | Speech gap that separates user utterances | | `GPT_LIVE_1_INPUT_IDLE_MS` | `2000` | Input quiet period that completes a user utterance | ## Execution and permissions ```text Spoken request → GPT-Live Client delegation → Gateway Task → configured backend Agent ← progress / permission request / result → Live context update or spoken response ``` - **Native delegation replaces `spawn_thinking` for this model.** The cloud delegation event carries an ID and a timeline position, not task text. Gateway builds the backend request from the conversation context and transcriptions. Missing or incomplete input must not authorize an action. - **Gateway remains the task owner.** Task status, cancellation, permissions, and durable results use the existing task system. A speech interruption does not cancel backend work. - **Permissions require explicit client controls.** Use the permission card in Desktop or WebUI, or `/approve [permission_id]` and `/reject [permission_id]` in TUI. With multiple pending requests, specify the displayed permission ID; `/approve` grants only the selected task, not session-wide permission. The decision goes directly to Gateway and the waiting backend, without another model call. Saying or typing “yes” does not approve a permission request in this version. Switching to GPT-Live does not enable automatic approval or change the configured backend permission policy. - **Waiting for an answer is not completion.** The desktop compact card shows that input is required; choose **Answer question** to open the conversation form. WebUI renders the form below the task. Use **Cancel task** to stop work; a spoken request does not automatically cancel backend execution. - **Frontend tools are not registered with GPT-Live.** The backend uses its own tools and configured capabilities. Gateway's frontend-only search, memory, reminder, MCP/OpenAPI, and client-action tools are not automatically transferred to it. Use client controls for task management; this integration does not promise voice control of those frontend-only features. See [Work and Permissions](../guides/tasks.md) for task-card controls and [Backend Permission Modes](../configuration/backend.md#backend-permission-modes) for the existing backend policies. ## Prompt structure Live's concise policy lives in `config/frontend-agent/LIVE_PROMPT.md`, separate from the tool-based `PROMPT.md`. Both reuse the same assistant profile, supplied memory context, and runtime context. Live does not include instructions to call frontend tools that it cannot use. To customize it, place `LIVE_PROMPT.md` in `QWEN_AUDIO_AGENT_FRONTEND_PROMPT_DIR`; if that file is absent, the packaged Live policy is used. A present but empty or unreadable file is an error. ## Inputs and delivery - **Voice:** the WebSocket uses Bearer authentication and mono PCM16 audio at 24 kHz in both directions. Recent text history is supplied at session startup. - **Text and files:** typed requests go directly to the configured backend; a short text summary is mirrored into Live's context. Submit the question and its images or files together. Attachments follow the backend's supported input capabilities, not a GPT-Live image input path. Later spoken references to historical attachments are not supported by this integration; Gateway does not attach all earlier files automatically. - **Progress and results:** quiet progress uses `session.thinking.append`; material to speak uses `session.commentary.append`. Updates for cloud-created work retain its delegation ID. Locally initiated work uses a null delegation ID. An append acknowledgment confirms context acceptance, not audible delivery. Each append is conservatively shortened to respect the upstream limit; the full result remains in the local task record. - **Natural interruptions:** the Live model controls its continuous speech. Already generated audio plays out; Gateway does not apply Realtime's speech-start playback clearing. Text input and explicit stop actions can request that the model stop speaking without cancelling the backend task. ## Limitations and validation - Oral permission approval is not implemented. Use a client with permission controls when the backend can request authorization. - TUI does not yet provide structured backend-question forms. Answer those requests through the Desktop or WebUI task card. - GPT-Live receives no images directly, and this integration does not negotiate live visual frames. Backend image understanding depends on the chosen Agent. - Audio and transcript timing are service-dependent. The adapter's local turn grouping is not a protocol guarantee that an answer was heard or an action completed. - An open Live connection can incur service charges even when the microphone is muted. Backend usage is separate. Local tests cover Client session setup, delegation and result events, task isolation, explicit permission handling, and unaffected Realtime behavior. They do not replace live validation of account access, model behavior, latency, or voices. See OpenAI's [delegation guide](https://developers.openai.com/api/docs/guides/live-delegation) for the upstream protocol. ## Read next - [OpenAI Realtime](openai-realtime.md) - [Frontend configuration reference](../configuration/frontend.md) - [Custom Provider](custom-provider.md)