MultiSpeakerVoiceConfig

@PublicPreviewAPI
class MultiSpeakerVoiceConfig


Configuration for a multi-speaker audio generation setup.

Enables the model to generate audio containing multiple distinct speakers, alternating voices dynamically based on speaker labels in the prompt.

Note: Multi-speaker configurations are not supported by the Live API (like LiveGenerationConfig).

Summary

Public constructors

Public properties

List<SpeakerVoiceConfig>

A list of voice configurations for the participating speakers.

Public constructors

MultiSpeakerVoiceConfig

MultiSpeakerVoiceConfig(speakerVoiceConfigs: List<SpeakerVoiceConfig>)

Public properties

speakerVoiceConfigs

val speakerVoiceConfigsList<SpeakerVoiceConfig>

A list of voice configurations for the participating speakers.