Enum StreamingRecognizeResponse.SpeechEventType (4.50.0)

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

Indicates the type of speech event.

Protobuf enum google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType

Implements

ProtocolMessageEnum

Static Fields

Name Description
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 and will close the gRPC bidirectional stream. This event is only sent if there was a force cutoff due to silence being detected early. This event is only available through the latest_short model.

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 and will close the gRPC bidirectional stream. This event is only sent if there was a force cutoff due to silence being detected early. This event is only available through the latest_short model.

END_OF_SINGLE_UTTERANCE = 1;

SPEECH_ACTIVITY_BEGIN

This event indicates that the server has detected the beginning of human voice activity in the stream. This event can be returned multiple times if speech starts and stops repeatedly throughout the stream. This event is only sent if voice_activity_events is set to true.

SPEECH_ACTIVITY_BEGIN = 2;

SPEECH_ACTIVITY_BEGIN_VALUE

This event indicates that the server has detected the beginning of human voice activity in the stream. This event can be returned multiple times if speech starts and stops repeatedly throughout the stream. This event is only sent if voice_activity_events is set to true.

SPEECH_ACTIVITY_BEGIN = 2;

SPEECH_ACTIVITY_END

This event indicates that the server has detected the end of human voice activity in the stream. This event can be returned multiple times if speech starts and stops repeatedly throughout the stream. This event is only sent if voice_activity_events is set to true.

SPEECH_ACTIVITY_END = 3;

SPEECH_ACTIVITY_END_VALUE

This event indicates that the server has detected the end of human voice activity in the stream. This event can be returned multiple times if speech starts and stops repeatedly throughout the stream. This event is only sent if voice_activity_events is set to true.

SPEECH_ACTIVITY_END = 3;

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

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

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()