LiveTextConversationAsync fails due to Cannot extract voices from a non-audio request.

Abierto
#803 2 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@hemasekhar-p ya está trabajando en esto.

Desde el 2/2/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

priority: p2 type: bug
Steps to reproduce
  1. https://github.com/googleapis/java-genai/pull/802
  2. mvn compile exec:java -Dexec.mainClass="com.google.genai.examples.LiveTextConversationAsync"
[INFO] --- exec:3.5.0:java (default-cli) @ google-genai-examples ---
Using Gemini Developer API
SLF4J(W): No SLF4J providers were found.
SLF4J(W): Defaulting to no-operation (NOP) logger implementation
SLF4J(W): See https://www.slf4j.org/codes.html#noProviders for further details.
Live session closed with code: 1007 and reason: Cannot extract voices from a non-audio request.
An error occurred: com.google.genai.errors.GenAiIOException: WebSocket closed unexpectedly: Cannot extract voices from a non-audio request.
java.util.concurrent.ExecutionException: com.google.genai.errors.GenAiIOException: WebSocket closed unexpectedly: Cannot extract voices from a non-audio request.
        at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396)
        at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2073)
        at com.google.genai.examples.LiveTextConversationAsync.main(LiveTextConversationAsync.java:99)
        at org.codehaus.mojo.exec.ExecJavaMojo.doMain(ExecJavaMojo.java:375)
        at org.codehaus.mojo.exec.ExecJavaMojo.doExec(ExecJavaMojo.java:364)
        at org.codehaus.mojo.exec.ExecJavaMojo.lambda$execute$0(ExecJavaMojo.java:286)
        at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: com.google.genai.errors.GenAiIOException: WebSocket closed unexpectedly: Cannot extract voices from a non-audio request.
        at com.google.genai.AsyncLive$GenAiWebSocketClient.onClose(AsyncLive.java:255)
        at org.java_websocket.client.WebSocketClient.onWebsocketClose(WebSocketClient.java:688)
        at org.java_websocket.WebSocketImpl.closeConnection(WebSocketImpl.java:557)
        at org.java_websocket.WebSocketImpl.eot(WebSocketImpl.java:612)
        at org.java_websocket.client.WebSocketClient.run(WebSocketClient.java:546)
        ... 1 more

Based on https://ai.google.dev/gemini-api/docs/live, it looks like it may be intentional that this used to but now no longer works?

If that is the case, and this is not just a temporary situation which is intended to be made working again in the future, then the LiveTextConversationAsync and related currently broken examples should perhaps be removed?

Lenguaje dominante
Java
Estrellas
398
Forks
126
Merge medio
1 d 12 h
PR fusionados (30 d)
71

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de googleapis/java-genai

Todos los issues de googleapis/java-genai

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.