Enum StreamingRecognizeResponse.SpeechEventType (2.4.0)

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

Indicates the type of speech event.

Protobuf enum google.cloud.speech.v1.StreamingRecognizeResponse.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). The client should stop sending additional audio data, half-close the gRPC connection, and wait for any additional results until the server closes the gRPC connection. 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). The client should stop sending additional audio data, half-close the gRPC connection, and wait for any additional results until the server closes the gRPC connection. This event is only sent if single_utterance was set to true, and is not used otherwise.

END_OF_SINGLE_UTTERANCE = 1;

SPEECH_EVENT_UNSPECIFIED

No speech event specified.

SPEECH_EVENT_UNSPECIFIED = 0;

SPEECH_EVENT_UNSPECIFIED_VALUE

No speech event specified.

SPEECH_EVENT_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()