Class StreamingRecognizeRequest (2.16.2)

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: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

NameDescription
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.
streaming_config google.cloud.speech_v2.types.StreamingRecognitionConfig
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.