SpeechConfig

constructor(voice: Voice, languageCode: String? = null)(source)

Constructs a SpeechConfig for a single-speaker setup.

Parameters

voice

The specific Voice to use for speech generation.

languageCode

An optional IETF BCP-47 language code to guide speech generation.


constructor(multiSpeakerVoiceConfig: MultiSpeakerVoiceConfig, languageCode: String? = null)(source)

Constructs a SpeechConfig for a multi-speaker setup.

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

Parameters

multiSpeakerVoiceConfig

The configuration detailing multiple speakers and their corresponding voices.

languageCode

An optional IETF BCP-47 language code to guide speech generation.