Protocol¶
The GRPC API uses a set of api calls defined in the protobuf. Client-server connection is established by opening a communication channel that has been initiated by the client. After opening the channel, run the api calls set up in the protobuf.
The current GRPC API version has two service methods, i.e. Asynchronous Mode and Synchronous Mode.
Method |
Description |
|---|---|
Recognize |
Recognizes speech in audios submitted to it. Audio content must be sent in the GRPC request body. Recognition is performed synchronously and the result is returned in the GRPC response. |
StreamingRecognize |
Recognizes speech in audios submitted to it. The recognition configuration must be sent in the GRPC request body prior to sending the audio. After setup, this method allows new calls to be made by sending audio in the GRPC request body. Recognition is performed asynchronously and the result is returned in the GRPC response. |
Use services via the following protobuf model: