1.1.0 (latest) 1.0.0

    public sealed class SynthesizeSpeechConfig : IMessage<SynthesizeSpeechConfig>, IEquatable<SynthesizeSpeechConfig>, IDeepCloneable<SynthesizeSpeechConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Gemini Enterprise for Customer Experience v1 API class SynthesizeSpeechConfig.

Configuration for how the agent response should be synthesized.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> SynthesizeSpeechConfig

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SynthesizeSpeechConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.SynthesizeSpeechConfig.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SynthesizeSpeechConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.SynthesizeSpeechConfig.md.txt), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SynthesizeSpeechConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.SynthesizeSpeechConfig.md.txt), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Ces.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.md.txt)

## Assembly

Google.Cloud.Ces.V1.dll

## Constructors

### SynthesizeSpeechConfig()

    public SynthesizeSpeechConfig()

### SynthesizeSpeechConfig(SynthesizeSpeechConfig)

    public SynthesizeSpeechConfig(SynthesizeSpeechConfig other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `SynthesizeSpeechConfig` |

## Properties

### Instruction

    public string Instruction { get; set; }

Optional. The instruction used to synthesize speech when using a generative
model.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Model

    public string Model { get; set; }

Optional. The model used to synthesize audio.
Currently supported values:

- "gemini-3.1-flash-tts-preview" If empty, Chirp3-HD is used.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### SpeakingRate

    public double SpeakingRate { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `double` |   |

### Voice

    public string Voice { get; set; }

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](https://cloud.google.com/text-to-speech/docs/voices) from Cloud
Text-to-Speech.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### VoiceSampleGcsUri

    public string VoiceSampleGcsUri { get; set; }

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-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com` has
`storage.objects.get` permission to the Cloud Storage object.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |