# Google Cloud Text-to-Speech v1beta1 API - Class SynthesizeSpeechRequest (2.0.0-beta18)

2.0.0-beta18 (latest) 2.0.0-beta17 1.0.0-beta04

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

Reference documentation and code samples for the Google Cloud Text-to-Speech v1beta1 API class SynthesizeSpeechRequest.

The top-level message sent by the client for the `SynthesizeSpeech` method.

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.TextToSpeech.V1Beta1.dll

## Constructors

### SynthesizeSpeechRequest()

    public SynthesizeSpeechRequest()

### SynthesizeSpeechRequest(SynthesizeSpeechRequest)

    public SynthesizeSpeechRequest(SynthesizeSpeechRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1Beta1/latest/Google.Cloud.TextToSpeech.V1Beta1.SynthesizeSpeechRequest` |

## Properties

### AdvancedVoiceOptions

    public AdvancedVoiceOptions AdvancedVoiceOptions { get; set; }

Optional. Advanced voice options.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1Beta1/latest/Google.Cloud.TextToSpeech.V1Beta1.AdvancedVoiceOptions` |   |

### AudioConfig

    public AudioConfig AudioConfig { get; set; }

Required. The configuration of the synthesized audio.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1Beta1/latest/Google.Cloud.TextToSpeech.V1Beta1.AudioConfig` |   |

### EnableTimePointing

    public RepeatedField<SynthesizeSpeechRequest.Types.TimepointType> EnableTimePointing { get; }

Whether and what timepoints are returned in the response.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1Beta1/latest/Google.Cloud.TextToSpeech.V1Beta1.SynthesizeSpeechRequesthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1Beta1/latest/Google.Cloud.TextToSpeech.V1Beta1.SynthesizeSpeechRequest.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1Beta1/latest/Google.Cloud.TextToSpeech.V1Beta1.SynthesizeSpeechRequest.Types.TimepointType` |   |

### Input

    public SynthesisInput Input { get; set; }

Required. The Synthesizer requires either plain text or SSML as input.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1Beta1/latest/Google.Cloud.TextToSpeech.V1Beta1.SynthesisInput` |   |

### Voice

    public VoiceSelectionParams Voice { get; set; }

Required. The desired voice of the synthesized audio.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1Beta1/latest/Google.Cloud.TextToSpeech.V1Beta1.VoiceSelectionParams` |   |