Class StreamingTranslateSpeechRequest (0.9.1)

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

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

Inheritance

builtins.object > proto.message.Message > StreamingTranslateSpeechRequest