# Google Cloud Text-to-Speech v1 API - Class CustomPronunciationParams (3.18.0)

3.18.0 (latest) 3.17.0 3.16.0 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.5.0 2.4.0 2.3.0 2.2.0

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

Reference documentation and code samples for the Google Cloud Text-to-Speech v1 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.V1/latest/Google.Cloud.TextToSpeech.V1.CustomPronunciationParams), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CustomPronunciationParams](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1/latest/Google.Cloud.TextToSpeech.V1.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.V1/latest/Google.Cloud.TextToSpeech.V1.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.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1/latest/Google.Cloud.TextToSpeech.V1)

## Assembly

Google.Cloud.TextToSpeech.V1.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.V1/latest/Google.Cloud.TextToSpeech.V1.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.V1/latest/Google.Cloud.TextToSpeech.V1.CustomPronunciationParamshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1/latest/Google.Cloud.TextToSpeech.V1.CustomPronunciationParams.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.TextToSpeech.V1/latest/Google.Cloud.TextToSpeech.V1.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` |   |