Cloud Speech-to-Text V2 API - Module Google::Cloud::Speech::V2::StreamingRecognizeResponse::SpeechEventType (v0.12.0)

Reference documentation and code samples for the Cloud Speech-to-Text V2 API module Google::Cloud::Speech::V2::StreamingRecognizeResponse::SpeechEventType.

Indicates the type of speech event.

Constants

SPEECH_EVENT_TYPE_UNSPECIFIED

value: 0
No speech event specified.

END_OF_SINGLE_UTTERANCE

value: 1
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.

SPEECH_ACTIVITY_BEGIN

value: 2
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_END

value: 3
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.