| [ Web Proxy ] |
| Viewing: https://adk.dev/integrations/../../live/dev-guide/../../../tutorials/../../live/configuration/ | [Back] [Original] |
[logo]
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.
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);
| Web Proxy Viewer | New URL | Original Page |