Synchronous ModeΒΆ

To apply synchronous mode use the RecognizeRequest method.

The GRPC API allows the use of continuous mode in speech recognition in both service methods (asynchronous and synchronous).

For more information on continuous mode see Continuous Mode.

To use continuous mode, you must have a valid license and the config.continuous_mode=true parameter must be set.

If the config.continuous_mode parameter is set to true, the response RecognitionResult field will be a list containing recognized sentences in the media file.

If the config.continuous_mode parameter is set to false, the response RecognitionResult field will contain the first recognized sentence listed in the media file.

In this operation mode, there will be a RecognizeResponse for each RecognizeRequest

The summary of the GRPC API synchronous mode flow is as follows:

  1. The client application opens a GRPC channel with the ASR server;

  2. After the channel is opened, client must send a RecognizeRequest recognition request. This request must contain a populated config field in the message and a media field with audio no larger than 4MB;

  3. The server will generate the final recognition result by sending a RecognizeResponse response;

  4. If the client wishes to perform a new recognition, the recognition request must be sent again.