# Google Cloud Dialogflow v2beta1 API - Class TextToSpeechSettings (1.0.0-beta30)

1.0.0-beta30 (latest) 1.0.0-beta29

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

Reference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class TextToSpeechSettings.

Instructs the speech synthesizer on how to generate the output audio content.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[TextToSpeechSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.TextToSpeechSettings), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[TextToSpeechSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.TextToSpeechSettings), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[TextToSpeechSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.TextToSpeechSettings), [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.Dialogflow.V2Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1)

## Assembly

Google.Cloud.Dialogflow.V2Beta1.dll

## Constructors

### TextToSpeechSettings()

    public TextToSpeechSettings()

### TextToSpeechSettings(TextToSpeechSettings)

    public TextToSpeechSettings(TextToSpeechSettings other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.TextToSpeechSettings` |

## Properties

### EnableTextToSpeech

    public bool EnableTextToSpeech { get; set; }

Optional. Indicates whether text to speech is enabled. Even when this field
is false, other settings in this proto are still retained.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### OutputAudioEncoding

    public OutputAudioEncoding OutputAudioEncoding { get; set; }

Required. Audio encoding of the synthesized audio content.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.OutputAudioEncoding` |   |

### SampleRateHertz

    public int SampleRateHertz { get; set; }

Optional. The synthesis sample rate (in hertz) for this audio. If not
provided, then the synthesizer will use the default sample rate based on
the audio encoding. If this is different from the voice's natural sample
rate, then the synthesizer will honor this request by converting to the
desired sample rate (which might result in worse audio quality).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### SynthesizeSpeechConfigs

    public MapField<string, SynthesizeSpeechConfig> SynthesizeSpeechConfigs { get; }

Optional. Configuration of how speech should be synthesized, mapping from
language (<https://cloud.google.com/dialogflow/docs/reference/language>) to
SynthesizeSpeechConfig.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.MapField-2.htmlhttps://learn.microsoft.com/dotnet/api/system.stringhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SynthesizeSpeechConfig` |   |