Reference documentation and code samples for the Cloud Speech-to-Text V1 API module Google::Cloud::Speech::V1::StreamingRecognizeResponse::SpeechEventType.
Indicates the type of speech event.
Constants
SPEECH_EVENT_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 (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.
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.
SPEECH_ACTIVITY_TIMEOUT
value: 4 This event indicates that the user-set timeout for speech activity begin
or end has exceeded. Upon receiving this event, the client is expected to
send a half close. Further audio will not be processed.
[[["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-08-28 UTC."],[],[],null,["# Cloud Speech-to-Text V1 API - Module Google::Cloud::Speech::V1::StreamingRecognizeResponse::SpeechEventType (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-speech-v1/latest/Google-Cloud-Speech-V1-StreamingRecognizeResponse-SpeechEventType)\n- [1.2.1](/ruby/docs/reference/google-cloud-speech-v1/1.2.1/Google-Cloud-Speech-V1-StreamingRecognizeResponse-SpeechEventType)\n- [1.1.0](/ruby/docs/reference/google-cloud-speech-v1/1.1.0/Google-Cloud-Speech-V1-StreamingRecognizeResponse-SpeechEventType)\n- [1.0.1](/ruby/docs/reference/google-cloud-speech-v1/1.0.1/Google-Cloud-Speech-V1-StreamingRecognizeResponse-SpeechEventType)\n- [0.17.0](/ruby/docs/reference/google-cloud-speech-v1/0.17.0/Google-Cloud-Speech-V1-StreamingRecognizeResponse-SpeechEventType)\n- [0.16.2](/ruby/docs/reference/google-cloud-speech-v1/0.16.2/Google-Cloud-Speech-V1-StreamingRecognizeResponse-SpeechEventType)\n- [0.15.0](/ruby/docs/reference/google-cloud-speech-v1/0.15.0/Google-Cloud-Speech-V1-StreamingRecognizeResponse-SpeechEventType)\n- [0.14.0](/ruby/docs/reference/google-cloud-speech-v1/0.14.0/Google-Cloud-Speech-V1-StreamingRecognizeResponse-SpeechEventType)\n- [0.13.1](/ruby/docs/reference/google-cloud-speech-v1/0.13.1/Google-Cloud-Speech-V1-StreamingRecognizeResponse-SpeechEventType)\n- [0.12.1](/ruby/docs/reference/google-cloud-speech-v1/0.12.1/Google-Cloud-Speech-V1-StreamingRecognizeResponse-SpeechEventType)\n- [0.11.0](/ruby/docs/reference/google-cloud-speech-v1/0.11.0/Google-Cloud-Speech-V1-StreamingRecognizeResponse-SpeechEventType)\n- [0.10.2](/ruby/docs/reference/google-cloud-speech-v1/0.10.2/Google-Cloud-Speech-V1-StreamingRecognizeResponse-SpeechEventType)\n- [0.9.0](/ruby/docs/reference/google-cloud-speech-v1/0.9.0/Google-Cloud-Speech-V1-StreamingRecognizeResponse-SpeechEventType)\n- [0.8.0](/ruby/docs/reference/google-cloud-speech-v1/0.8.0/Google-Cloud-Speech-V1-StreamingRecognizeResponse-SpeechEventType)\n- [0.7.3](/ruby/docs/reference/google-cloud-speech-v1/0.7.3/Google-Cloud-Speech-V1-StreamingRecognizeResponse-SpeechEventType) \nReference documentation and code samples for the Cloud Speech-to-Text V1 API module Google::Cloud::Speech::V1::StreamingRecognizeResponse::SpeechEventType.\n\nIndicates the type of speech event.\n\nConstants\n---------\n\n### SPEECH_EVENT_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 (although it may subsequently return\nadditional results). The client should stop sending additional audio\ndata, half-close the gRPC connection, and wait for any additional results\nuntil the server closes the gRPC connection. This event is only sent if\n`single_utterance` was set to `true`, and is not used otherwise.\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.\n\n### SPEECH_ACTIVITY_TIMEOUT\n\n**value:** 4 \nThis event indicates that the user-set timeout for speech activity begin\nor end has exceeded. Upon receiving this event, the client is expected to\nsend a half close. Further audio will not be processed."]]