[BindServiceMethod(typeof(Speech), "BindService")]
public abstract class Speech.SpeechBaseReference documentation and code samples for the Cloud Speech-to-Text v2 API class Speech.SpeechBase.
Base class for server-side implementations of Speech
Namespace
Google.Cloud.Speech.V2Assembly
Google.Cloud.Speech.V2.dll
Methods
BatchRecognize(BatchRecognizeRequest, ServerCallContext)
public virtual Task<Operation> BatchRecognize(BatchRecognizeRequest request, ServerCallContext context)Performs batch asynchronous speech recognition: send a request with N audio files and receive a long running operation that can be polled to see when the transcriptions are finished.
| Parameters | |
|---|---|
| Name | Description |
request |
BatchRecognizeRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
CreateCustomClass(CreateCustomClassRequest, ServerCallContext)
public virtual Task<Operation> CreateCustomClass(CreateCustomClassRequest request, ServerCallContext context)Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
| Parameters | |
|---|---|
| Name | Description |
request |
CreateCustomClassRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
CreatePhraseSet(CreatePhraseSetRequest, ServerCallContext)
public virtual Task<Operation> CreatePhraseSet(CreatePhraseSetRequest request, ServerCallContext context)Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
| Parameters | |
|---|---|
| Name | Description |
request |
CreatePhraseSetRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
CreateRecognizer(CreateRecognizerRequest, ServerCallContext)
public virtual Task<Operation> CreateRecognizer(CreateRecognizerRequest request, ServerCallContext context)Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
| Parameters | |
|---|---|
| Name | Description |
request |
CreateRecognizerRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
DeleteCustomClass(DeleteCustomClassRequest, ServerCallContext)
public virtual Task<Operation> DeleteCustomClass(DeleteCustomClassRequest request, ServerCallContext context)Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteCustomClassRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
DeletePhraseSet(DeletePhraseSetRequest, ServerCallContext)
public virtual Task<Operation> DeletePhraseSet(DeletePhraseSetRequest request, ServerCallContext context)Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
| Parameters | |
|---|---|
| Name | Description |
request |
DeletePhraseSetRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
DeleteRecognizer(DeleteRecognizerRequest, ServerCallContext)
public virtual Task<Operation> DeleteRecognizer(DeleteRecognizerRequest request, ServerCallContext context)Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteRecognizerRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
GetConfig(GetConfigRequest, ServerCallContext)
public virtual Task<Config> GetConfig(GetConfigRequest request, ServerCallContext context)Returns the requested [Config][google.cloud.speech.v2.Config].
| Parameters | |
|---|---|
| Name | Description |
request |
GetConfigRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskConfig |
The response to send back to the client (wrapped by a task). |
GetCustomClass(GetCustomClassRequest, ServerCallContext)
public virtual Task<CustomClass> GetCustomClass(GetCustomClassRequest request, ServerCallContext context)Returns the requested [CustomClass][google.cloud.speech.v2.CustomClass].
| Parameters | |
|---|---|
| Name | Description |
request |
GetCustomClassRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskCustomClass |
The response to send back to the client (wrapped by a task). |
GetPhraseSet(GetPhraseSetRequest, ServerCallContext)
public virtual Task<PhraseSet> GetPhraseSet(GetPhraseSetRequest request, ServerCallContext context)Returns the requested [PhraseSet][google.cloud.speech.v2.PhraseSet].
| Parameters | |
|---|---|
| Name | Description |
request |
GetPhraseSetRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskPhraseSet |
The response to send back to the client (wrapped by a task). |
GetRecognizer(GetRecognizerRequest, ServerCallContext)
public virtual Task<Recognizer> GetRecognizer(GetRecognizerRequest request, ServerCallContext context)Returns the requested [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested Recognizer doesn't exist.
| Parameters | |
|---|---|
| Name | Description |
request |
GetRecognizerRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskRecognizer |
The response to send back to the client (wrapped by a task). |
ListCustomClasses(ListCustomClassesRequest, ServerCallContext)
public virtual Task<ListCustomClassesResponse> ListCustomClasses(ListCustomClassesRequest request, ServerCallContext context)Lists CustomClasses.
| Parameters | |
|---|---|
| Name | Description |
request |
ListCustomClassesRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskListCustomClassesResponse |
The response to send back to the client (wrapped by a task). |
ListPhraseSets(ListPhraseSetsRequest, ServerCallContext)
public virtual Task<ListPhraseSetsResponse> ListPhraseSets(ListPhraseSetsRequest request, ServerCallContext context)Lists PhraseSets.
| Parameters | |
|---|---|
| Name | Description |
request |
ListPhraseSetsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskListPhraseSetsResponse |
The response to send back to the client (wrapped by a task). |
ListRecognizers(ListRecognizersRequest, ServerCallContext)
public virtual Task<ListRecognizersResponse> ListRecognizers(ListRecognizersRequest request, ServerCallContext context)Lists Recognizers.
| Parameters | |
|---|---|
| Name | Description |
request |
ListRecognizersRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskListRecognizersResponse |
The response to send back to the client (wrapped by a task). |
Recognize(RecognizeRequest, ServerCallContext)
public virtual Task<RecognizeResponse> Recognize(RecognizeRequest request, ServerCallContext context)Performs synchronous Speech recognition: receive results after all audio has been sent and processed.
| Parameters | |
|---|---|
| Name | Description |
request |
RecognizeRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskRecognizeResponse |
The response to send back to the client (wrapped by a task). |
StreamingRecognize(IAsyncStreamReader<StreamingRecognizeRequest>, IServerStreamWriter<StreamingRecognizeResponse>, ServerCallContext)
public virtual Task StreamingRecognize(IAsyncStreamReader<StreamingRecognizeRequest> requestStream, IServerStreamWriter<StreamingRecognizeResponse> responseStream, ServerCallContext context)Performs bidirectional streaming speech recognition: receive results while sending audio. This method is only available via the gRPC API (not REST).
| Parameters | |
|---|---|
| Name | Description |
requestStream |
IAsyncStreamReaderStreamingRecognizeRequestUsed for reading requests from the client. |
responseStream |
IServerStreamWriterStreamingRecognizeResponseUsed for sending responses back to the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
Task |
A task indicating completion of the handler. |
UndeleteCustomClass(UndeleteCustomClassRequest, ServerCallContext)
public virtual Task<Operation> UndeleteCustomClass(UndeleteCustomClassRequest request, ServerCallContext context)Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
| Parameters | |
|---|---|
| Name | Description |
request |
UndeleteCustomClassRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
UndeletePhraseSet(UndeletePhraseSetRequest, ServerCallContext)
public virtual Task<Operation> UndeletePhraseSet(UndeletePhraseSetRequest request, ServerCallContext context)Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
| Parameters | |
|---|---|
| Name | Description |
request |
UndeletePhraseSetRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
UndeleteRecognizer(UndeleteRecognizerRequest, ServerCallContext)
public virtual Task<Operation> UndeleteRecognizer(UndeleteRecognizerRequest request, ServerCallContext context)Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
| Parameters | |
|---|---|
| Name | Description |
request |
UndeleteRecognizerRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
UpdateConfig(UpdateConfigRequest, ServerCallContext)
public virtual Task<Config> UpdateConfig(UpdateConfigRequest request, ServerCallContext context)Updates the [Config][google.cloud.speech.v2.Config].
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateConfigRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskConfig |
The response to send back to the client (wrapped by a task). |
UpdateCustomClass(UpdateCustomClassRequest, ServerCallContext)
public virtual Task<Operation> UpdateCustomClass(UpdateCustomClassRequest request, ServerCallContext context)Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateCustomClassRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
UpdatePhraseSet(UpdatePhraseSetRequest, ServerCallContext)
public virtual Task<Operation> UpdatePhraseSet(UpdatePhraseSetRequest request, ServerCallContext context)Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
| Parameters | |
|---|---|
| Name | Description |
request |
UpdatePhraseSetRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
UpdateRecognizer(UpdateRecognizerRequest, ServerCallContext)
public virtual Task<Operation> UpdateRecognizer(UpdateRecognizerRequest request, ServerCallContext context)Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateRecognizerRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |