LiveTextConversationAsync fails due to Cannot extract voices from a non-audio request.
I maintainer di solito rispondono entro 1 giorno
@hemasekhar-p ci sta già lavorando.
Dal 2/2/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Steps to reproduce
- https://github.com/googleapis/java-genai/pull/802
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?
- Lingua principale
- Java
- Stelle
- 398
- Fork
- 126
- Merge medio
- 1g 12h
- PR unite (30g)
- 71
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di googleapis/java-genai
-
ResponseStream.close() can block on the reader lock before closing the HTTP responseForse già presa @hirematha l’ha presa 2 giorni fa. Apertapriority: p2 type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
googleapis/java-genai#1372 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Interactions API: GaosClientException.getMessage() only returns "400 . API error occurred" and omits the server error detailsForse già presa @hemasekhar-p l’ha presa 26 giorni fa. Apertapriority: p2 type: bug
googleapis/java-genai#1282 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Interactions API: store(false) omits "id", breaking Interaction and InteractionCompletedEvent deserializationForse già presa @hemasekhar-p l’ha presa 26 giorni fa. Apertapriority: p2 type: bug
googleapis/java-genai#1281 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Interaction.outputText() always returns Optional.empty() (SDK-computed field is never populated)Forse già presa @hemasekhar-p l’ha presa 26 giorni fa. Apertapriority: p2 type: bug
googleapis/java-genai#1280 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Gen AI with structured output - `propertyOrdering` in Python vs. Java implementationsForse già presa @hemasekhar-p l’ha presa 80 giorni fa. Apertapriority: p3 type: feature request
googleapis/java-genai#1169 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di googleapis/java-genai
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
breaking change bug needs human review not ready priority medium size S
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
martin-francois/symphony-trello#1193 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Mend: dependency security vulnerability
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100