public sealed class SpeechClientImpl : SpeechClientReference documentation and code samples for the Google Cloud Speech v1 API class SpeechClientImpl.
Speech client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Speech.V1Assembly
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 | |
|---|---|
| Name | Description |
grpcClient |
SpeechSpeechClientThe underlying gRPC client. |
settings |
SpeechSettingsThe base SpeechSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
GrpcClient
public override Speech.SpeechClient GrpcClient { get; }The underlying gRPC Speech client
| Property Value | |
|---|---|
| Type | Description |
SpeechSpeechClient |
|
LongRunningRecognizeOperationsClient
public override OperationsClient LongRunningRecognizeOperationsClient { get; }The long-running operations client for LongRunningRecognize.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
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 | |
|---|---|
| Name | Description |
request |
LongRunningRecognizeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationLongRunningRecognizeResponseLongRunningRecognizeMetadata |
The RPC response. |
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 | |
|---|---|
| Name | Description |
request |
LongRunningRecognizeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationLongRunningRecognizeResponseLongRunningRecognizeMetadata |
A Task containing the RPC response. |
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 |
RecognizeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
RecognizeResponse |
The RPC response. |
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 |
RecognizeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRecognizeResponse |
A Task containing the RPC response. |
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 |
CallSettingsIf not null, applies overrides to this RPC call. |
streamingSettings |
BidirectionalStreamingSettingsIf not null, applies streaming overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
SpeechClientStreamingRecognizeStream |
The client-server stream. |