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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class StreamingTranslateSpeechRequest (0.11.17)\n\nVersion latestkeyboard_arrow_down\n\n- [0.11.17 (latest)](/python/docs/reference/mediatranslation/latest/google.cloud.mediatranslation_v1beta1.types.StreamingTranslateSpeechRequest)\n- [0.11.15](/python/docs/reference/mediatranslation/0.11.15/google.cloud.mediatranslation_v1beta1.types.StreamingTranslateSpeechRequest)\n- [0.10.0](/python/docs/reference/mediatranslation/0.10.0/google.cloud.mediatranslation_v1beta1.types.StreamingTranslateSpeechRequest)\n- [0.9.4](/python/docs/reference/mediatranslation/0.9.4/google.cloud.mediatranslation_v1beta1.types.StreamingTranslateSpeechRequest)\n- [0.8.2](/python/docs/reference/mediatranslation/0.8.2/google.cloud.mediatranslation_v1beta1.types.StreamingTranslateSpeechRequest)\n- [0.7.1](/python/docs/reference/mediatranslation/0.7.1/google.cloud.mediatranslation_v1beta1.types.StreamingTranslateSpeechRequest)\n- [0.6.0](/python/docs/reference/mediatranslation/0.6.0/google.cloud.mediatranslation_v1beta1.types.StreamingTranslateSpeechRequest)\n- [0.5.4](/python/docs/reference/mediatranslation/0.5.4/google.cloud.mediatranslation_v1beta1.types.StreamingTranslateSpeechRequest)\n- [0.4.0](/python/docs/reference/mediatranslation/0.4.0/google.cloud.mediatranslation_v1beta1.types.StreamingTranslateSpeechRequest)\n- [0.3.0](/python/docs/reference/mediatranslation/0.3.0/google.cloud.mediatranslation_v1beta1.types.StreamingTranslateSpeechRequest)\n- [0.2.0](/python/docs/reference/mediatranslation/0.2.0/google.cloud.mediatranslation_v1beta1.types.StreamingTranslateSpeechRequest)\n- [0.1.1](/python/docs/reference/mediatranslation/0.1.1/google.cloud.mediatranslation_v1beta1.types.StreamingTranslateSpeechRequest) \n\n StreamingTranslateSpeechRequest(\n mapping=None, *, ignore_unknown_fields=False, **kwargs\n )\n\nThe top-level message sent by the client for the\n`StreamingTranslateSpeech` method. Multiple\n`StreamingTranslateSpeechRequest` messages are sent. The first\nmessage must contain a `streaming_config` message and must not\ncontain `audio_content` data. All subsequent messages must contain\n`audio_content` data and must not contain a `streaming_config`\nmessage.\n\nThis message has `oneof`_ fields (mutually exclusive fields).\nFor each oneof, at most one member field can be set at the same time.\nSetting any member of the oneof automatically clears all other\nmembers.\n\n.. _oneof: \u003chttps://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields\u003e"]]