Class StreamingTranslateSpeechResponse (0.1.1)

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

A streaming speech translation response corresponding to a portion of the audio currently processed.

Attributes

NameDescription
error .status.Status
Output only. If set, returns a google.rpc.Status][google.rpc.Status] message that specifies the error for the operation.
result .media_translation.StreamingTranslateSpeechResult
Output only. The translation result that is currently being processed (is_final could be true or false).
speech_event_type .media_translation.StreamingTranslateSpeechResponse.SpeechEventType
Output only. Indicates the type of speech event.

Classes

SpeechEventType

SpeechEventType(value)

Indicates the type of speech event.

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.