Class SpeechClientImpl

public sealed class SpeechClientImpl : SpeechClient

Speech client wrapper implementation, for convenient use.

Inheritance

Object > SpeechClient > SpeechClientImpl

Namespace

Google.Cloud.Speech.V1P1Beta1

Assembly

Google.Cloud.Speech.V1P1Beta1.dll

Remarks

Service that implements Google Cloud Speech API.

Constructors

SpeechClientImpl(Speech.SpeechClient, SpeechSettings)

public SpeechClientImpl(Speech.SpeechClient grpcClient, SpeechSettings settings)

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

Parameters
TypeNameDescription
Speech.SpeechClientgrpcClient

The underlying gRPC client.

SpeechSettingssettings

The base SpeechSettings used within this client.

Properties

GrpcClient

public override Speech.SpeechClient GrpcClient { get; }

The underlying gRPC Speech client

Property Value
TypeDescription
Speech.SpeechClient
Overrides

LongRunningRecognizeOperationsClient

public override OperationsClient LongRunningRecognizeOperationsClient { get; }

The long-running operations client for LongRunningRecognize.

Property Value
TypeDescription
OperationsClient
Overrides

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.

Parameters
TypeNameDescription
LongRunningRecognizeRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<LongRunningRecognizeResponse, LongRunningRecognizeMetadata>

The RPC response.

Overrides

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.

Parameters
TypeNameDescription
LongRunningRecognizeRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<LongRunningRecognizeResponse, LongRunningRecognizeMetadata>>

A Task containing the RPC response.

Overrides

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
TypeNameDescription
RecognizeRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
RecognizeResponse

The RPC response.

Overrides

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
TypeNameDescription
RecognizeRequestrequest

The request object containing all of the parameters for the API call.

CallSettingscallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<RecognizeResponse>

A Task containing the RPC response.

Overrides

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
TypeNameDescription
CallSettingscallSettings

If not null, applies overrides to this RPC call.

BidirectionalStreamingSettingsstreamingSettings

If not null, applies streaming overrides to this RPC call.

Returns
TypeDescription
SpeechClient.StreamingRecognizeStream

The client-server stream.

Overrides