Class SynthesizeSpeechConfig
Configuration for how the agent response should be synthesized.
Implements
Inherited Members
Namespace: Google.Apis.CustomerEngagementSuite.v1beta.Data
Assembly: Google.Apis.CustomerEngagementSuite.v1beta.dll
Syntax
public class SynthesizeSpeechConfig : IDirectResponseSchema
Properties
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Instruction
Optional. The instruction used to synthesize speech when using a generative model.
Declaration
[JsonProperty("instruction")]
public virtual string Instruction { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Model
Optional. The model used to synthesize audio. Currently supported values: - "gemini-3.1-flash-tts-preview" If empty, Chirp3-HD is used.
Declaration
[JsonProperty("model")]
public virtual string Model { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SpeakingRate
Optional. The speaking rate/speed in the range [0.25, 2.0]. 1.0 is the normal native speed supported by the specific voice. 2.0 is twice as fast, and 0.5 is half as fast. Values outside of the range [0.25, 2.0] will return an error.
Declaration
[JsonProperty("speakingRate")]
public virtual double? SpeakingRate { get; set; }
Property Value
| Type | Description |
|---|---|
| double? |
Voice
Optional. The name of the voice. If not set, the service will choose a voice based on the other parameters such as language_code. For the list of available voices, please refer to Supported voices and languages from Cloud Text-to-Speech.
Declaration
[JsonProperty("voice")]
public virtual string Voice { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
VoiceSampleGcsUri
Optional. The Cloud Storage URI to the audio sample for voice cloning. The audio sample should be a
mono-channel, 24kHz WAV file. Note: Please make sure the CES service agent
service-@gcp-sa-ces.iam.gserviceaccount.com has storage.objects.get permission to the Cloud Storage
object.
Declaration
[JsonProperty("voiceSampleGcsUri")]
public virtual string VoiceSampleGcsUri { get; set; }
Property Value
| Type | Description |
|---|---|
| string |