Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 1.1 KB

Recognize.md

File metadata and controls

22 lines (15 loc) · 1.1 KB

Recognize

rpc Recognize(RecognizeRequest) returns (RecognizeResponse)

Performs synchronous speech recognition: receive results after all audio has been sent and processed.

Note: Audios more than 60 seconds do not work with sync Recognize. Use LongRunningRecognize for long audios.

RecognizeRequest

The top-level message sent by the client for the Recognize method.

Fields Description
config RecognitionConfig
Required. Provides information to the recognizer that specifies how to process the request.
audio RecognitionAudio
Required. The audio data to be recognized.

RecognizeResponse

The only message returned to the client by the Recognize method. It contains the result as zero or more sequential SpeechRecognitionResult messages.

Fields Description
results[] SpeechRecognitionResult
Sequential list of transcription results corresponding to sequential portions of audio.