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.
Attributes | |
---|---|
Name | Description |
streaming_config |
Provides information to the recognizer that specifies how to process the request. The first StreamingTranslateSpeechRequest message must contain a
streaming_config message.
|
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).
|
Methods
__delattr__
__delattr__(key)
Delete the value on the given field.
This is generally equivalent to setting a falsy value.
__eq__
__eq__(other)
Return True if the messages are equal, False otherwise.
__ne__
__ne__(other)
Return True if the messages are unequal, False otherwise.
__setattr__
__setattr__(key, value)
Set the value on the given field.
For well-known protocol buffer types which are marshalled, either the protocol buffer object or the Python equivalent is accepted.