Enum StreamingTranslateSpeechResponse.SpeechEventType (0.35.0)

public enum StreamingTranslateSpeechResponse.SpeechEventType extends Enum<StreamingTranslateSpeechResponse.SpeechEventType> implements ProtocolMessageEnum

Indicates the type of speech event.

Protobuf enum google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse.SpeechEventType

Implements

ProtocolMessageEnum

Static Fields

NameDescription
END_OF_SINGLE_UTTERANCE

This event indicates that the server has detected the end of the user's speech utterance and expects no additional speech. Therefore, the server will not process additional audio (although it may subsequently return additional results). When the client receives 'END_OF_SINGLE_UTTERANCE' event, the client should stop sending the requests. However, clients should keep receiving remaining responses until the stream is terminated. To construct the complete sentence in a streaming way, one should override (if 'is_final' of previous response is false), or append (if 'is_final' of previous response is true). This event is only sent if single_utterance was set to true, and is not used otherwise.

END_OF_SINGLE_UTTERANCE = 1;

END_OF_SINGLE_UTTERANCE_VALUE

This event indicates that the server has detected the end of the user's speech utterance and expects no additional speech. Therefore, the server will not process additional audio (although it may subsequently return additional results). When the client receives 'END_OF_SINGLE_UTTERANCE' event, the client should stop sending the requests. However, clients should keep receiving remaining responses until the stream is terminated. To construct the complete sentence in a streaming way, one should override (if 'is_final' of previous response is false), or append (if 'is_final' of previous response is true). This event is only sent if single_utterance was set to true, and is not used otherwise.

END_OF_SINGLE_UTTERANCE = 1;

SPEECH_EVENT_TYPE_UNSPECIFIED

No speech event specified.

SPEECH_EVENT_TYPE_UNSPECIFIED = 0;

SPEECH_EVENT_TYPE_UNSPECIFIED_VALUE

No speech event specified.

SPEECH_EVENT_TYPE_UNSPECIFIED = 0;

UNRECOGNIZED

Static Methods

NameDescription
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

NameDescription
getDescriptorForType()
getNumber()
getValueDescriptor()