Class SpeechClientImpl (2.8.0)

public sealed class SpeechClientImpl : SpeechClient

Speech client wrapper implementation, for convenient use.

Inheritance

Object > SpeechClient > SpeechClientImpl

Namespace

Google.Cloud.Speech.V1

Assembly

Google.Cloud.Speech.V1.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
NameDescription
grpcClientSpeech.SpeechClient

The underlying gRPC client.

settingsSpeechSettings

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
NameDescription
requestLongRunningRecognizeRequest

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
NameDescription
requestLongRunningRecognizeRequest

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
NameDescription
requestRecognizeRequest

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
NameDescription
requestRecognizeRequest

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
NameDescription
callSettingsCallSettings

If not null, applies overrides to this RPC call.

streamingSettingsBidirectionalStreamingSettings

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

Returns
TypeDescription
SpeechClient.StreamingRecognizeStream

The client-server stream.

Overrides