Class StreamingRecognizeRequest

The top-level message sent by the client for the StreamingRecognize method. Multiple StreamingRecognizeRequest messages are sent. The first message must contain a streaming_config message and must not contain audio_content. All subsequent messages must contain audio_content 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
google.cloud.speech_v1p1beta1.types.StreamingRecognitionConfigstreaming_config
Provides information to the recognizer that specifies how to process the request. The first ``StreamingRecognizeRequest`` message must contain a ``streaming_config`` message. This field is a member of `oneof`_ ``streaming_request``.
bytesaudio_content
The audio data to be recognized. Sequential chunks of audio data are sent in sequential ``StreamingRecognizeRequest`` messages. The first ``StreamingRecognizeRequest`` message must not contain ``audio_content`` data and all subsequent ``StreamingRecognizeRequest`` messages must contain ``audio_content`` data. The audio bytes must be encoded as specified in ``RecognitionConfig``. Note: as with all bytes fields, proto buffers use a pure binary representation (not base64). See `content limits

Inheritance

builtins.object > proto.message.Message > StreamingRecognizeRequest