Class StreamingRecognizeRequest (2.16.1)

StreamingRecognizeRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Request message for the StreamingRecognize method. Multiple StreamingRecognizeRequest messages are sent. The first message must contain a recognizer and optionally a streaming_config message and must not contain audio. All subsequent messages must contain audio and must not contain a streaming_config message.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof:


recognizer str
Required. Streaming recognition should start with an initial request having a ``recognizer``. Subsequent requests carry the audio data to be recognized. The initial request with configuration can be omitted if the Recognizer being used has a default_recognition_config.
StreamingRecognitionConfig to be used in this recognition attempt. If provided, it will override the default RecognitionConfig stored in the Recognizer. This field is a member of `oneof`_ ``streaming_request``.
audio bytes
Inline audio bytes to be Recognized. This field is a member of `oneof`_ ``streaming_request``.


builtins.object > proto.message.Message > StreamingRecognizeRequest