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_shortmodel.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Speech-to-Text V2 API - Module Google::Cloud::Speech::V2::StreamingRecognizeResponse::SpeechEventType (v1.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-StreamingRecognizeResponse-SpeechEventType)\n- [1.2.0](/ruby/docs/reference/google-cloud-speech-v2/1.2.0/Google-Cloud-Speech-V2-StreamingRecognizeResponse-SpeechEventType)\n- [1.1.0](/ruby/docs/reference/google-cloud-speech-v2/1.1.0/Google-Cloud-Speech-V2-StreamingRecognizeResponse-SpeechEventType)\n- [1.0.1](/ruby/docs/reference/google-cloud-speech-v2/1.0.1/Google-Cloud-Speech-V2-StreamingRecognizeResponse-SpeechEventType)\n- [0.16.0](/ruby/docs/reference/google-cloud-speech-v2/0.16.0/Google-Cloud-Speech-V2-StreamingRecognizeResponse-SpeechEventType)\n- [0.15.0](/ruby/docs/reference/google-cloud-speech-v2/0.15.0/Google-Cloud-Speech-V2-StreamingRecognizeResponse-SpeechEventType)\n- [0.14.0](/ruby/docs/reference/google-cloud-speech-v2/0.14.0/Google-Cloud-Speech-V2-StreamingRecognizeResponse-SpeechEventType)\n- [0.13.1](/ruby/docs/reference/google-cloud-speech-v2/0.13.1/Google-Cloud-Speech-V2-StreamingRecognizeResponse-SpeechEventType)\n- [0.12.0](/ruby/docs/reference/google-cloud-speech-v2/0.12.0/Google-Cloud-Speech-V2-StreamingRecognizeResponse-SpeechEventType)\n- [0.11.0](/ruby/docs/reference/google-cloud-speech-v2/0.11.0/Google-Cloud-Speech-V2-StreamingRecognizeResponse-SpeechEventType)\n- [0.10.0](/ruby/docs/reference/google-cloud-speech-v2/0.10.0/Google-Cloud-Speech-V2-StreamingRecognizeResponse-SpeechEventType)\n- [0.9.2](/ruby/docs/reference/google-cloud-speech-v2/0.9.2/Google-Cloud-Speech-V2-StreamingRecognizeResponse-SpeechEventType)\n- [0.8.0](/ruby/docs/reference/google-cloud-speech-v2/0.8.0/Google-Cloud-Speech-V2-StreamingRecognizeResponse-SpeechEventType)\n- [0.7.0](/ruby/docs/reference/google-cloud-speech-v2/0.7.0/Google-Cloud-Speech-V2-StreamingRecognizeResponse-SpeechEventType)\n- [0.6.0](/ruby/docs/reference/google-cloud-speech-v2/0.6.0/Google-Cloud-Speech-V2-StreamingRecognizeResponse-SpeechEventType)\n- [0.5.1](/ruby/docs/reference/google-cloud-speech-v2/0.5.1/Google-Cloud-Speech-V2-StreamingRecognizeResponse-SpeechEventType)\n- [0.4.0](/ruby/docs/reference/google-cloud-speech-v2/0.4.0/Google-Cloud-Speech-V2-StreamingRecognizeResponse-SpeechEventType)\n- [0.3.0](/ruby/docs/reference/google-cloud-speech-v2/0.3.0/Google-Cloud-Speech-V2-StreamingRecognizeResponse-SpeechEventType)\n- [0.2.0](/ruby/docs/reference/google-cloud-speech-v2/0.2.0/Google-Cloud-Speech-V2-StreamingRecognizeResponse-SpeechEventType)\n- [0.1.0](/ruby/docs/reference/google-cloud-speech-v2/0.1.0/Google-Cloud-Speech-V2-StreamingRecognizeResponse-SpeechEventType) \nReference documentation and code samples for the Cloud Speech-to-Text V2 API module Google::Cloud::Speech::V2::StreamingRecognizeResponse::SpeechEventType.\n\nIndicates the type of speech event.\n\nConstants\n---------\n\n### SPEECH_EVENT_TYPE_UNSPECIFIED\n\n**value:** 0 \nNo speech event specified.\n\n### END_OF_SINGLE_UTTERANCE\n\n**value:** 1 \nThis event indicates that the server has detected the end of the user's\nspeech utterance and expects no additional speech. Therefore, the server\nwill not process additional audio and will close the gRPC bidirectional\nstream. This event is only sent if there was a force cutoff due to\nsilence being detected early. This event is only available through the\n`latest_short` [model](/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-Recognizer#Google__Cloud__Speech__V2__Recognizer_model_instance_ \"Google::Cloud::Speech::V2::Recognizer#model (method)\").\n\n### SPEECH_ACTIVITY_BEGIN\n\n**value:** 2 \nThis event indicates that the server has detected the beginning of human\nvoice activity in the stream. This event can be returned multiple times\nif speech starts and stops repeatedly throughout the stream. This event\nis only sent if `voice_activity_events` is set to true.\n\n### SPEECH_ACTIVITY_END\n\n**value:** 3 \nThis event indicates that the server has detected the end of human voice\nactivity in the stream. This event can be returned multiple times if\nspeech starts and stops repeatedly throughout the stream. This event is\nonly sent if `voice_activity_events` is set to true."]]