[ Web Proxy ]
URL:
Viewing: https://adk.dev/integrations/../../live/dev-guide/../../../tutorials/../../live/configuration/ [Back]  [Original]

Configuring streaming behavior - Agent Development Kit (ADK) Agent Development Kit (ADK)
Skip to content
ADK Go 2.0 GA is LIVE with graph workflows and collaborative agents! Get started.
logo [logo]
Configuring streaming behavior
Python [Python] Python TypeScript [TypeScript] JS Go [Go] Go Java [Java] Java Kotlin [Kotlin] Kotlin
[Go]
  1. Home
  2. Components
  3. Live and Voice Agents

Configuring streaming behavior

Supported in ADKPython v0.5.0Java v0.2.0Experimental

There are some configurations you can set for live(streaming) agents.

It's set by RunConfig. You should use RunConfig with your Runner.run_live(...).

For example, if you want to set voice config, you can leverage speech_config.

PythonJava
voice_config = genai_types.VoiceConfig(
    prebuilt_voice_config=genai_types.PrebuiltVoiceConfigDict(
        voice_name='Aoede'
    )
)
speech_config = genai_types.SpeechConfig(voice_config=voice_config)
run_config = RunConfig(speech_config=speech_config)

runner.run_live(
    # ...,
    run_config=run_config,
)
import com.google.adk.agents.RunConfig;
import com.google.genai.types.PrebuiltVoiceConfig;
import com.google.genai.types.SpeechConfig;
import com.google.genai.types.VoiceConfig;

VoiceConfig voiceConfig =
    VoiceConfig.builder()
        .prebuiltVoiceConfig(PrebuiltVoiceConfig.builder().voiceName("Aoede").build())
        .build();
SpeechConfig speechConfig = SpeechConfig.builder().voiceConfig(voiceConfig).build();
RunConfig runConfig = RunConfig.builder().setSpeechConfig(speechConfig).build();

runner.runLive(
    // ...,
    runConfig);
Back to top

Web Proxy Viewer  |  New URL  |  Original Page