Skip to content
Discussion options

You must be logged in to vote

Response from ADK Answering Agent (experimental, answer may be inaccurate)

TLDR: You are receiving audio output because "live" agents in ADK default to an audio modality. To receive text, you must explicitly configure the agent to output text by passing a RunConfig object to your runner.run_live call.


Hello! I can help with your question.

The behavior you are observing is expected. The gemini-2.0-flash-live-001 model is a "live" agent, and these agents are optimized for real-time, spoken conversations. By default, they produce an audio stream (audio/pcm) as output. [2]

To get a streaming text response, you need to configure the run to expect the "TEXT" modality. You can do this by creati…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hangfei
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bot responded [Bot] This issue is responded by ADK bot
2 participants