# Google Cloud Speech v1p1beta1 API - Class SpeechClientImpl (3.0.0-beta10)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [3.0.0-beta10 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechClientImpl)
- [3.0.0-beta09](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/3.0.0-beta09/Google.Cloud.Speech.V1P1Beta1.SpeechClientImpl)
- [2.0.0-beta09](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/2.0.0-beta09/Google.Cloud.Speech.V1P1Beta1.SpeechClientImpl)

    public sealed class SpeechClientImpl : SpeechClient

Reference documentation and code samples for the Google Cloud Speech v1p1beta1 API class SpeechClientImpl.

Speech client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [SpeechClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechClient) \> SpeechClientImpl

## Inherited Members

[SpeechClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechClient#Google_Cloud_Speech_V1P1Beta1_SpeechClient_DefaultEndpoint) [SpeechClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechClient#Google_Cloud_Speech_V1P1Beta1_SpeechClient_DefaultScopes) [SpeechClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechClient#Google_Cloud_Speech_V1P1Beta1_SpeechClient_ServiceMetadata) [SpeechClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechClient#Google_Cloud_Speech_V1P1Beta1_SpeechClient_CreateAsync_System_Threading_CancellationToken_) [SpeechClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechClient#Google_Cloud_Speech_V1P1Beta1_SpeechClient_Create) [SpeechClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechClient#Google_Cloud_Speech_V1P1Beta1_SpeechClient_ShutdownDefaultChannelsAsync) [SpeechClient.RecognizeAsync(RecognizeRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechClient#Google_Cloud_Speech_V1P1Beta1_SpeechClient_RecognizeAsync_Google_Cloud_Speech_V1P1Beta1_RecognizeRequest_System_Threading_CancellationToken_) [SpeechClient.Recognize(RecognitionConfig, RecognitionAudio, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechClient#Google_Cloud_Speech_V1P1Beta1_SpeechClient_Recognize_Google_Cloud_Speech_V1P1Beta1_RecognitionConfig_Google_Cloud_Speech_V1P1Beta1_RecognitionAudio_Google_Api_Gax_Grpc_CallSettings_) [SpeechClient.RecognizeAsync(RecognitionConfig, RecognitionAudio, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechClient#Google_Cloud_Speech_V1P1Beta1_SpeechClient_RecognizeAsync_Google_Cloud_Speech_V1P1Beta1_RecognitionConfig_Google_Cloud_Speech_V1P1Beta1_RecognitionAudio_Google_Api_Gax_Grpc_CallSettings_) [SpeechClient.RecognizeAsync(RecognitionConfig, RecognitionAudio, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechClient#Google_Cloud_Speech_V1P1Beta1_SpeechClient_RecognizeAsync_Google_Cloud_Speech_V1P1Beta1_RecognitionConfig_Google_Cloud_Speech_V1P1Beta1_RecognitionAudio_System_Threading_CancellationToken_) [SpeechClient.LongRunningRecognizeAsync(LongRunningRecognizeRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechClient#Google_Cloud_Speech_V1P1Beta1_SpeechClient_LongRunningRecognizeAsync_Google_Cloud_Speech_V1P1Beta1_LongRunningRecognizeRequest_System_Threading_CancellationToken_) [SpeechClient.PollOnceLongRunningRecognize(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechClient#Google_Cloud_Speech_V1P1Beta1_SpeechClient_PollOnceLongRunningRecognize_System_String_Google_Api_Gax_Grpc_CallSettings_) [SpeechClient.PollOnceLongRunningRecognizeAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechClient#Google_Cloud_Speech_V1P1Beta1_SpeechClient_PollOnceLongRunningRecognizeAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [SpeechClient.LongRunningRecognize(RecognitionConfig, RecognitionAudio, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechClient#Google_Cloud_Speech_V1P1Beta1_SpeechClient_LongRunningRecognize_Google_Cloud_Speech_V1P1Beta1_RecognitionConfig_Google_Cloud_Speech_V1P1Beta1_RecognitionAudio_Google_Api_Gax_Grpc_CallSettings_) [SpeechClient.LongRunningRecognizeAsync(RecognitionConfig, RecognitionAudio, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechClient#Google_Cloud_Speech_V1P1Beta1_SpeechClient_LongRunningRecognizeAsync_Google_Cloud_Speech_V1P1Beta1_RecognitionConfig_Google_Cloud_Speech_V1P1Beta1_RecognitionAudio_Google_Api_Gax_Grpc_CallSettings_) [SpeechClient.LongRunningRecognizeAsync(RecognitionConfig, RecognitionAudio, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechClient#Google_Cloud_Speech_V1P1Beta1_SpeechClient_LongRunningRecognizeAsync_Google_Cloud_Speech_V1P1Beta1_RecognitionConfig_Google_Cloud_Speech_V1P1Beta1_RecognitionAudio_System_Threading_CancellationToken_) [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.Speech.V1P1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1)

## Assembly

Google.Cloud.Speech.V1P1Beta1.dll

## Remarks

Service that implements Google Cloud Speech API.

## Constructors

### SpeechClientImpl(SpeechClient, SpeechSettings, ILogger)

    public SpeechClientImpl(Speech.SpeechClient grpcClient, SpeechSettings settings, ILogger logger)

Constructs a client wrapper for the Speech service, with the specified gRPC client and settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.Speechhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.Speech.SpeechClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechSettings` The base [SpeechSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechSettings) used within this client. |
| `logger` | `https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### GrpcClient

    public override Speech.SpeechClient GrpcClient { get; }

The underlying gRPC Speech client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.Speechhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.Speech.SpeechClient` |   |

**Overrides** [SpeechClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechClient#Google_Cloud_Speech_V1P1Beta1_SpeechClient_GrpcClient)

### LongRunningRecognizeOperationsClient

    public override OperationsClient LongRunningRecognizeOperationsClient { get; }

The long-running operations client for `LongRunningRecognize`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

**Overrides** [SpeechClient.LongRunningRecognizeOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechClient#Google_Cloud_Speech_V1P1Beta1_SpeechClient_LongRunningRecognizeOperationsClient)

## Methods

### LongRunningRecognize(LongRunningRecognizeRequest, CallSettings)

    public override Operation<LongRunningRecognizeResponse, LongRunningRecognizeMetadata> LongRunningRecognize(LongRunningRecognizeRequest request, CallSettings callSettings = null)

Performs asynchronous speech recognition: receive results via the
google.longrunning.Operations interface. Returns either an
`Operation.error` or an `Operation.response` which contains
a `LongRunningRecognizeResponse` message.
For more information on asynchronous speech recognition, see the
[how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.LongRunningRecognizeRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.LongRunningRecognizeResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.LongRunningRecognizeMetadata` | The RPC response. |

**Overrides** [SpeechClient.LongRunningRecognize(LongRunningRecognizeRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechClient#Google_Cloud_Speech_V1P1Beta1_SpeechClient_LongRunningRecognize_Google_Cloud_Speech_V1P1Beta1_LongRunningRecognizeRequest_Google_Api_Gax_Grpc_CallSettings_)

### LongRunningRecognizeAsync(LongRunningRecognizeRequest, CallSettings)

    public override Task<Operation<LongRunningRecognizeResponse, LongRunningRecognizeMetadata>> LongRunningRecognizeAsync(LongRunningRecognizeRequest request, CallSettings callSettings = null)

Performs asynchronous speech recognition: receive results via the
google.longrunning.Operations interface. Returns either an
`Operation.error` or an `Operation.response` which contains
a `LongRunningRecognizeResponse` message.
For more information on asynchronous speech recognition, see the
[how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.LongRunningRecognizeRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.LongRunningRecognizeResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.LongRunningRecognizeMetadata` | A Task containing the RPC response. |

**Overrides** [SpeechClient.LongRunningRecognizeAsync(LongRunningRecognizeRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechClient#Google_Cloud_Speech_V1P1Beta1_SpeechClient_LongRunningRecognizeAsync_Google_Cloud_Speech_V1P1Beta1_LongRunningRecognizeRequest_Google_Api_Gax_Grpc_CallSettings_)

### Recognize(RecognizeRequest, CallSettings)

    public override RecognizeResponse Recognize(RecognizeRequest request, CallSettings callSettings = null)

Performs synchronous speech recognition: receive results after all audio
has been sent and processed.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.RecognizeRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.RecognizeResponse` | The RPC response. |

**Overrides** [SpeechClient.Recognize(RecognizeRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechClient#Google_Cloud_Speech_V1P1Beta1_SpeechClient_Recognize_Google_Cloud_Speech_V1P1Beta1_RecognizeRequest_Google_Api_Gax_Grpc_CallSettings_)

### RecognizeAsync(RecognizeRequest, CallSettings)

    public override Task<RecognizeResponse> RecognizeAsync(RecognizeRequest request, CallSettings callSettings = null)

Performs synchronous speech recognition: receive results after all audio
has been sent and processed.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.RecognizeRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.RecognizeResponse` | A Task containing the RPC response. |

**Overrides** [SpeechClient.RecognizeAsync(RecognizeRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechClient#Google_Cloud_Speech_V1P1Beta1_SpeechClient_RecognizeAsync_Google_Cloud_Speech_V1P1Beta1_RecognizeRequest_Google_Api_Gax_Grpc_CallSettings_)

### StreamingRecognize(CallSettings, BidirectionalStreamingSettings)

    public override SpeechClient.StreamingRecognizeStream StreamingRecognize(CallSettings callSettings = null, BidirectionalStreamingSettings streamingSettings = null)

Performs bidirectional streaming speech recognition: receive results while
sending audio. This method is only available via the gRPC API (not REST).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |
| `streamingSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.BidirectionalStreamingSettings.html` If not null, applies streaming overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechClienthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechClient.StreamingRecognizeStream` | The client-server stream. |

**Overrides** [SpeechClient.StreamingRecognize(CallSettings, BidirectionalStreamingSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechClient#Google_Cloud_Speech_V1P1Beta1_SpeechClient_StreamingRecognize_Google_Api_Gax_Grpc_CallSettings_Google_Api_Gax_Grpc_BidirectionalStreamingSettings_)