# Google Cloud Media Translation V1beta1 Client - Class SpeechEventType (0.6.2)

0.6.2 (latest) 0.6.1 0.5.2 0.4.5 0.3.3 0.2.12

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Media Translation V1beta1 Client class SpeechEventType.

Indicates the type of speech event.

Protobuf type `google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse.SpeechEventType`

## Namespace

Google \\ Cloud \\ MediaTranslation \\ V1beta1 \\ StreamingTranslateSpeechResponse

## 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 (although it may subsequently return
additional results). When the client receives 'END_OF_SINGLE_UTTERANCE'
event, the client should stop sending the requests. However, clients
should keep receiving remaining responses until the stream is terminated.

To construct the complete sentence in a streaming way, one should
override (if 'is_final' of previous response is false), or append (if
'is_final' of previous response is true). This event is only sent if
`single_utterance` was set to `true`, and is not used otherwise.

Generated from protobuf enum `END_OF_SINGLE_UTTERANCE = 1;`