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

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

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

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

Pronunciation customization for a phrase.

## Inheritance

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

## Implements

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

### CustomPronunciationParams()

    public CustomPronunciationParams()

### CustomPronunciationParams(CustomPronunciationParams)

    public CustomPronunciationParams(CustomPronunciationParams other)

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

## Properties

### HasPhoneticEncoding

    public bool HasPhoneticEncoding { get; }

Gets whether the "phonetic_encoding" field is set

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

### HasPhrase

    public bool HasPhrase { get; }

Gets whether the "phrase" field is set

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

### HasPronunciation

    public bool HasPronunciation { get; }

Gets whether the "pronunciation" field is set

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

### PhoneticEncoding

    public CustomPronunciationParams.Types.PhoneticEncoding PhoneticEncoding { get; set; }

The phonetic encoding of the phrase.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1Beta1/latest/Google.Cloud.TextToSpeech.V1Beta1.CustomPronunciationParamshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1Beta1/latest/Google.Cloud.TextToSpeech.V1Beta1.CustomPronunciationParams.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1Beta1/latest/Google.Cloud.TextToSpeech.V1Beta1.CustomPronunciationParams.Types.PhoneticEncoding` |   |

### Phrase

    public string Phrase { get; set; }

The phrase to which the customization is applied.
The phrase can be multiple words, such as proper nouns, but shouldn't span
the length of the sentence.

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

### Pronunciation

    public string Pronunciation { get; set; }

The pronunciation of the phrase. This must be in the phonetic encoding
specified above.

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