Class SpeechConfig
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
The speech generation config.
public class SpeechConfig
- Inheritance
-
SpeechConfig
- Inherited Members
- Extension Methods
Properties
LanguageCode
Optional. Language code (in BCP 47 format, e.g. "en-US") for speech synthesis. Valid values are shown at the above URI.
[JsonPropertyName("languageCode")]
public string? LanguageCode { get; set; }
Property Value
MultiSpeakerVoiceConfig
Optional. The configuration for the multi-speaker setup. It is mutually exclusive with the VoiceConfig field.
[JsonPropertyName("multiSpeakerVoiceConfig")]
public MultiSpeakerVoiceConfig? MultiSpeakerVoiceConfig { get; set; }
Property Value
VoiceConfig
The configuration for the speaker to use.
[JsonPropertyName("voiceConfig")]
public VoiceConfig? VoiceConfig { get; set; }