# Cloud Speech-to-Text V1p1beta1 API - Module Google::Cloud::Speech::V1p1beta1::StreamingRecognizeResponse::SpeechEventType (v0.30.0)

0.30.0 (latest) 0.29.1 0.28.0 0.27.1 0.26.0 0.25.0 0.24.1 0.23.0 0.22.0 0.21.1 0.20.2 0.19.0 0.18.1 0.17.1 0.16.0 0.15.3 0.14.0 0.13.0 0.12.4 Reference documentation and code samples for the Cloud Speech-to-Text V1p1beta1 API module Google::Cloud::Speech::V1p1beta1::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.