public sealed class SpeechClientImpl : SpeechClient
Speech client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Speech.V1P1Beta1Assembly
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 | |
---|---|
Name | Description |
grpcClient | Speech.SpeechClient The underlying gRPC client. |
settings | SpeechSettings The base SpeechSettings used within this client. |
Properties
GrpcClient
public override Speech.SpeechClient GrpcClient { get; }
The underlying gRPC Speech client
Property Value | |
---|---|
Type | Description |
Speech.SpeechClient |
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 | LongRunningRecognizeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<LongRunningRecognizeResponse, LongRunningRecognizeMetadata> | The RPC response. |
LongRunningRecognizeAsync(LongRunningRecognizeRequest, CallSettings)
public override async 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 | LongRunningRecognizeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<LongRunningRecognizeResponse, LongRunningRecognizeMetadata>> | 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 | RecognizeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If 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 | RecognizeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<RecognizeResponse> | 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 | CallSettings If not null, applies overrides to this RPC call. |
streamingSettings | BidirectionalStreamingSettings If not null, applies streaming overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
SpeechClient.StreamingRecognizeStream | The client-server stream. |