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

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

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

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

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

## Inheritance

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

## Implements

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

### ListVoicesRequest()

    public ListVoicesRequest()

### ListVoicesRequest(ListVoicesRequest)

    public ListVoicesRequest(ListVoicesRequest other)

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

## Properties

### LanguageCode

    public string LanguageCode { get; set; }

Optional. Recommended.
[BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
If not specified, the API will return all supported voices.
If specified, the ListVoices call will only return voices that can be used
to synthesize this language_code. For example, if you specify `"en-NZ"`,
all `"en-NZ"` voices will be returned. If you specify `"no"`, both
`"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices will be
returned.

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