# Cloud Speech V2 Client - Class SpeechEventType (2.5.1)

2.5.1 (latest) 2.5.0 2.4.0 2.3.0 2.2.1 2.1.1 2.0.1 1.20.1 1.19.2 1.18.3 1.16.0 1.15.0 1.14.3 1.13.1 1.12.0 1.11.2 1.10.0 1.9.1 1.8.0 1.7.0 Reference documentation and code samples for the Cloud Speech V2 Client class SpeechEventType.

Indicates the type of speech event.

Protobuf type `google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType`

## Namespace

Google \\ Cloud \\ Speech \\ V2 \\ StreamingRecognizeResponse

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### SPEECH_EVENT_TYPE_UNSPECIFIED

    Value: 0

No speech event specified.

Generated from protobuf enum `SPEECH_EVENT_TYPE_UNSPECIFIED = 0;`

### 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](https://docs.cloud.google.com/php/docs/reference/cloud-speech/latest/V2.Recognizer#_Google_Cloud_Speech_V2_Recognizer__getModel__).

Generated from protobuf enum `END_OF_SINGLE_UTTERANCE = 1;`

### 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.

Generated from protobuf enum `SPEECH_ACTIVITY_BEGIN = 2;`

### 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.

Generated from protobuf enum `SPEECH_ACTIVITY_END = 3;`