Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#803 コメント 2 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@hemasekhar-p がすでに取り組んでいます。

2026年2月2日 から。

評価

この issue はまだ評価されていません。

説明

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?

主要言語
Java
スター
398
フォーク
126
平均マージ
1日 12時間
マージ済み PR(30日)
71

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

googleapis/java-genai のほかの issue

googleapis/java-genai の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。