SpeechConfig

@Serializable
data class SpeechConfig(val voiceConfig: VoiceConfig? = null, val languageCode: String? = null, val multiSpeakerVoiceConfig: MultiSpeakerVoiceConfig? = null)

Config for speech generation and transcription.

Constructors

Link copied to clipboard
constructor(voiceConfig: VoiceConfig? = null, languageCode: String? = null, multiSpeakerVoiceConfig: MultiSpeakerVoiceConfig? = null)

Properties

Link copied to clipboard
val languageCode: String? = null

Optional. The language code (ISO 639-1) for the speech synthesis.

Link copied to clipboard

The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with voice_config.

Link copied to clipboard

The configuration in case of single-voice output.