Files
Joe Fernandez f12068a4bb docs: add language support tags to pages (#850)
* docs: add language support tags to pages

- replace img.shield tags
- add language support tags where missing

* update Agents page with general tags

* update language and version tagging

- response to review comments
- rename css styles to avoid style name conflicts

* add tags to api-server page
2025-11-03 16:07:35 -08:00

29 lines
952 B
Markdown

# Configurating streaming behaviour
<div class="language-support-tag">
<span class="lst-supported">Supported in ADK</span><span class="lst-python">Python v0.5.0</span><span class="lst-preview">Experimental</span>
</div>
There are some configurations you can set for live(streaming) agents.
It's set by [RunConfig](https://github.com/google/adk-python/blob/main/src/google/adk/agents/run_config.py). You should use RunConfig with your [Runner.run_live(...)](https://github.com/google/adk-python/blob/main/src/google/adk/runners.py).
For example, if you want to set voice config, you can leverage speech_config.
```python
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,
)
```