Priming Gemini as if it spoke

I am having a voice conversation with gemini - but I’d like to start the conversation and be able to append a message if gemini spoke it.

I have tried:

{clientContent:{turns:[{role:“model”,parts:[{“text”:“Have you had a good day today?”}]}],tuneComplete:true}}

If I put turnComplete true, the model responds (I would rather it think it spoke this and now it is my turn to respond). If I put turnComplete:false I believe the rest of my code doesn’t quite work because it throws off the state of things.

I am having an audio conversation only - no text - but I was hoping I could append the text to prime the gemini agent?

Is this possible? Is my only option a system message? I’d like to insert responses sometimes for the model.

Thank you!

1 Like

I might be looking for a similar solution.

I want to send context to the model (conversation history, additional data) without triggering a response. So I set turnComplete to false for this ClientContentMessage.

But after sending the ClientContentMessage with turnComplete: false , following RealtimeInputMessages ( my voice ) does not trigger a response from the API anymore.

I would like to use turnComplete: false to insert text, but then have it turnComplete: true for further RealtimeInputMessages (voice input) to get a normal response that is aware of the new context I inserted via text.