Google Cloud Speech v1 API - Class SpeechClientImpl (3.5.0)

public sealed class SpeechClientImpl : SpeechClient

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

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(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
NameDescription
grpcClientSpeechSpeechClient

The underlying gRPC client.

settingsSpeechSettings

The base SpeechSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override Speech.SpeechClient GrpcClient { get; }

The underlying gRPC Speech client

Property Value
TypeDescription
SpeechSpeechClient
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
OperationLongRunningRecognizeResponseLongRunningRecognizeMetadata

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
TaskOperationLongRunningRecognizeResponseLongRunningRecognizeMetadata

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
TaskRecognizeResponse

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
SpeechClientStreamingRecognizeStream

The client-server stream.

Overrides