GPT-Live: session.input.set_audio_enabled(False) also stops the agent's speech
Los mantenedores suelen responder en 1 día
@longcw ya está trabajando en esto.
Desde el 9/10/2026.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 22/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- python
- Área
- audio-video-rtc
Línea de trabajo
The disabling path is in livekit-agents/livekit/agents/voice/room_io/_input.py around lines 180-184, where RoomIO drops input frames while detached. Trace how GPT-Live output pacing depends on incoming input audio, then compare with the mute_input() path, which keeps output running. Done means agent speech continues after set_audio_enabled(False), or the behaviour is documented, with a test covering the thinking-state case.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Bug Description
While session.input.set_audio_enabled(False) is in effect, RoomIO drops input frames, which is expected. With GPT-Live, though, output is paced by the input audio, so the agent's speech also stops about 3.7–3.9 s later and only resumes once input is re-enabled. A common pattern, disabling input while the agent is thinking and re-enabling it when it leaves thinking, can then hang: after the tool finishes the agent can't speak its answer, and the state stays thinking.
Relevant code: RoomIO drops frames while detached
Expected Behavior
For duplex models, disabling input shouldn't stop output, e.g. keep sending silence while disabled, or use mute_input() instead. At least a warning or a note in the docs.
Reproduction Steps
1. Start an AgentSession with GPTLiveModel and ask a question.
2. Halfway through the answer, call session.input.set_audio_enabled(False).
3. Measure the agent's audio over the next 12 s.
Voice tests (audio input drops frames while disabled, as RoomIO does):
| Agent audio in the next 12 s | When speech stops | |
|---|---|---|
| input left enabled | 9.2–10.2 s | keeps speaking |
set_audio_enabled(False) |
2.7–3.5 s | 3.7–3.9 s after disabling (3/3) |
mute_input() instead |
9.3–10.0 s | keeps speaking |
With input disabled during thinking and an 8 s tool, the agent stayed in thinking without answering in 1 of 2 runs with set_audio_enabled, and answered in 2 of 2 with mute_input().
Operating System
Windows 11
Models Used
GPT-Live (gpt-live-1) with a Responses backend (gpt-6-luna)
Package Versions
livekit==1.1.18
livekit-agents==1.8.3
livekit-plugins-openai==1.8.3
python==3.13
Additional Context
#7239 addressed the same root cause when there is no microphone (text mode) and was closed. This is the case with a real microphone where the app disables input.
- Lenguaje dominante
- Python
- Estrellas
- 14.6k
- Forks
- 3.9k
- Merge medio
- 2 d 12 h
- PR fusionados (30 d)
- 223
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de livekit/agents
-
Assistant markup is stripped from chat history when expressive mode is offPosiblemente ocupada @ShivamSharma43 la tomó hace 20 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
livekit/agents#7647 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
docs: openai.LLM vs openai.responses.LLM for HTTP OpenAI-compat hostsQuizá libre de nuevo @AbarnaaSree la tomó hace 60 días y no hay ningún pull request abierto. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
livekit/agents#7022 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Los mantenedores suelen responder en 1 día
Todos los issues de livekit/agents
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
521xueweihan/HelloGitHub#4150 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
aws-samples/sample-per-model-bedrock#595 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
bug connectors
Dificultad 1/5 Menos de una hora Aptitud para principiantes 67/100
pyinfra-dev/pyinfra#2036 ·
Los mantenedores suelen responder en 9 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día