# Cloud Speech V2 Client - Class State (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 State.

Set of states that define the lifecycle of a Recognizer.

Protobuf type `google.cloud.speech.v2.Recognizer.State`

## Namespace

Google \\ Cloud \\ Speech \\ V2 \\ Recognizer

## Methods

### static::name

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

### static::value

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

## Constants

### STATE_UNSPECIFIED

    Value: 0

The default value. This value is used if the state is omitted.

Generated from protobuf enum `STATE_UNSPECIFIED = 0;`

### ACTIVE

    Value: 2

The Recognizer is active and ready for use.

Generated from protobuf enum `ACTIVE = 2;`

### DELETED

    Value: 4

This Recognizer has been deleted.

Generated from protobuf enum `DELETED = 4;`