StreamingRecognitionConfig

The StreamingRecognitionConfig message provides information to the recognizer that specifies how to process the request.

JSON representation
{
  "config": {
    object(RecognitionConfig)
  },
  "singleUtterance": boolean,
  "interimResults": boolean,
}
Fields
config

object(RecognitionConfig)

[Required] The config message provides information to the recognizer that specifies how to process the request.

singleUtterance

boolean

[Optional] If false or omitted, the recognizer will perform continuous recognition (continuing to process audio even if the user pauses speaking) until the client closes the output stream (gRPC API) or when the maximum time limit has been reached. Multiple StreamingRecognitionResults with the isFinal flag set to true may be returned.

If true, the recognizer will detect a single spoken utterance. When it detects that the user has paused or stopped speaking, it will return an END_OF_UTTERANCE event and cease recognition. It will return no more than one StreamingRecognitionResult with the isFinal flag set to true.

interimResults

boolean

[Optional] If true, interim results (tentative hypotheses) may be returned as they become available (these interim results are indicated with the isFinal=false flag). If false or omitted, only isFinal=true result(s) are returned.

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Speech-to-Text API