Skip to content

Live - "client-content" without end of turn blocks voice response. #682

Open
@tiagoefreitas

Description

@tiagoefreitas

Description of the bug:

I was trying to add hidden context to gemini live audio to give it instructions during audio conversations that are hidden from the users (not only at the beggining). The gemini docs say we can add previous context with clientcontent but the model always responds, even if I add the model response as a turn with turncomplete=true like this:

{
  "clientContent": {
    "turns": [
      {
        "role": "user",
        "parts": [
          {
            "text": "Context xxx"
          }
        ]
      },
      {
        "role": "model",
        "parts": [
          {
            "text": "ok."
          }
        ]
      }
    ],
    "turnComplete": true
  }
}

The model will still reply in audio with "ok" again

And if turncomplete is false, the model will not reply to audio content until I send a text message to end the turn.

If I instruct in the prompt not to reply, it seems the model was trained to always reply so 90% of the times it says “ok” or something.

Actual vs expected behavior:

No response

Any other information you'd like to share?

No response

Metadata

Metadata

Assignees

Labels

component:apiIssues related to the API, not the SDK.status:triagedIssue/PR triaged to the corresponding sub-teamtype:feature requestNew feature request/enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions