<button class="button button-with-icon cloud-select-dropdown__button button-primary" aria-haspopup="true">On-premises or any cloud edition v1.15</button>

- [SAP BTP edition v1.1](https://docs.cloud.google.com/sap/docs/abap-sdk/btp/latest/reference/googcl_speech_v1p1beta1)
- [On-premises or any cloud edition v1.15](https://docs.cloud.google.com/sap/docs/abap-sdk/on-premises-or-any-cloud/latest/reference/googcl_speech_v1p1beta1.md.txt)

## Class

```abap
/GOOG/CL_SPEECH_V1P1BETA1
```

- Inheriting from:`/GOOG/CL_HTTP_CLIENT`
- Description:`Cloud Speech-to-Text API v1p1beta1`

For general information about a class in ABAP SDK for Google Cloud, see [API client stub](https://docs.cloud.google.com/sap/docs/abap-sdk/latest/developer#client_stub).

## Types

| Type | Description | Visibility |
|---|---|---|
| `TY_001` | `ABNFGrammar` | PUBLIC |
| `TY_002` | `ClassItem` | PUBLIC |
| `TY_003` | `CreateCustomClassRequest` | PUBLIC |
| `TY_004` | `CreatePhraseSetRequest` | PUBLIC |
| `TY_005` | `CustomClass` | PUBLIC |
| `TY_007` | `Entry` | PUBLIC |
| `TY_008` | `ListCustomClassesResponse` | PUBLIC |
| `TY_009` | `ListOperationsResponse` | PUBLIC |
| `TY_010` | `ListPhraseSetResponse` | PUBLIC |
| `TY_011` | `LongRunningRecognizeRequest` | PUBLIC |
| `TY_012` | `Operation` | PUBLIC |
| `TY_013` | `Phrase` | PUBLIC |
| `TY_014` | `PhraseSet` | PUBLIC |
| `TY_015` | `RecognitionAudio` | PUBLIC |
| `TY_016` | `RecognitionConfig` | PUBLIC |
| `TY_017` | `RecognitionMetadata` | PUBLIC |
| `TY_018` | `RecognizeRequest` | PUBLIC |
| `TY_019` | `RecognizeResponse` | PUBLIC |
| `TY_020` | `SpeakerDiarizationConfig` | PUBLIC |
| `TY_021` | `SpeechAdaptation` | PUBLIC |
| `TY_022` | `SpeechAdaptationInfo` | PUBLIC |
| `TY_023` | `SpeechContext` | PUBLIC |
| `TY_024` | `SpeechRecognitionAlternative` | PUBLIC |
| `TY_025` | `SpeechRecognitionResult` | PUBLIC |
| `TY_026` | `Status` | PUBLIC |
| `TY_027` | `TranscriptNormalization` | PUBLIC |
| `TY_028` | `TranscriptOutputConfig` | PUBLIC |
| `TY_029` | `WordInfo` | PUBLIC |
| `TY_T_002` | `ClassItem` | PUBLIC |
| `TY_T_005` | `CustomClass` | PUBLIC |
| `TY_T_007` | `Entry` | PUBLIC |
| `TY_T_012` | `Operation` | PUBLIC |
| `TY_T_013` | `Phrase` | PUBLIC |
| `TY_T_014` | `PhraseSet` | PUBLIC |
| `TY_T_023` | `SpeechContext` | PUBLIC |
| `TY_T_024` | `SpeechRecognitionAlternative` | PUBLIC |
| `TY_T_025` | `SpeechRecognitionResult` | PUBLIC |
| `TY_T_029` | `WordInfo` | PUBLIC |
| `TY_T_STRING` | `Table of Strings` | PUBLIC |

## Constants

| Name | Type | Description | Value | Visibility |
|---|---|---|---|---|
| `C_CLOUD_VERSION` | `/GOOG/SDK_VERSION` | Lowest Cloud Version |   | PUBLIC |
| `C_ON_PREM_VERSION` | `/GOOG/SDK_VERSION` | Lowest On-premises Version | 1.10 | PUBLIC |
| `C_PATH_PREFIX` | `STRING` | API Path Prefix |   | PUBLIC |
| `C_REVISION_DATE` | `DATUM` | Discovery Document revision Date | 20250220 | PUBLIC |
| `C_ROOT_URL` | `STRING` | API Root URL | https://speech.googleapis.com | PUBLIC |
| `C_SERVICE_NAME` | `/GOOG/SERVICE_NAME` | Google Service Name | speech:v1p1beta1 | PUBLIC |
| `C_SUPPORTED_AUTH` | `/GOOG/SUPP_AUTH` | Supported Auth Types | IJIJWW | PUBLIC |

## Methods

For general information about a method in ABAP SDK for Google Cloud, see [API method](https://docs.cloud.google.com/sap/docs/abap-sdk/latest/developer#api_method).

### CONSTRUCTOR

- Description: Constructor
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_KEY_NAME` | IMPORTING | `/GOOG/KEYNAME` | Google Cloud Key Name |
| `IV_LOG_OBJ` | IMPORTING | `BALOBJ_D` | Application log: Object name (Application code) |
| `IV_LOG_SUBOBJ` | IMPORTING | `BALSUBOBJ` | Application Log: Subobject |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### CREATE_CUSTOM_CLASSES

- Description: speech.projects.locations.customClasses.create
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_P_PROJECTS_ID` | IMPORTING | `STRING` | projectsId |
| `IV_P_LOCATIONS_ID` | IMPORTING | `STRING` | locationsId |
| `IS_INPUT` | IMPORTING | `TY_003` | CreateCustomClassRequest |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_005` | CustomClass |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### CREATE_PHRASE_SETS

- Description: speech.projects.locations.phraseSets.create
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_P_PROJECTS_ID` | IMPORTING | `STRING` | projectsId |
| `IV_P_LOCATIONS_ID` | IMPORTING | `STRING` | locationsId |
| `IS_INPUT` | IMPORTING | `TY_004` | CreatePhraseSetRequest |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_014` | PhraseSet |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### DELETE_CUSTOM_CLASSES

- Description: speech.projects.locations.customClasses.delete
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_P_PROJECTS_ID` | IMPORTING | `STRING` | projectsId |
| `IV_P_LOCATIONS_ID` | IMPORTING | `STRING` | locationsId |
| `IV_P_CUSTOM_CLASSES_ID` | IMPORTING | `STRING` | customClassesId |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `DATA` | Output Data |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### DELETE_PHRASE_SETS

- Description: speech.projects.locations.phraseSets.delete
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_P_PROJECTS_ID` | IMPORTING | `STRING` | projectsId |
| `IV_P_LOCATIONS_ID` | IMPORTING | `STRING` | locationsId |
| `IV_P_PHRASE_SETS_ID` | IMPORTING | `STRING` | phraseSetsId |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `DATA` | Output Data |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### GET_CUSTOM_CLASSES

- Description: speech.projects.locations.customClasses.get
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_P_PROJECTS_ID` | IMPORTING | `STRING` | projectsId |
| `IV_P_LOCATIONS_ID` | IMPORTING | `STRING` | locationsId |
| `IV_P_CUSTOM_CLASSES_ID` | IMPORTING | `STRING` | customClassesId |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_005` | CustomClass |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### GET_OPERATIONS

- Description: speech.operations.get
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_P_OPERATIONS_ID` | IMPORTING | `STRING` | operationsId |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_012` | Operation |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### GET_PHRASE_SETS

- Description: speech.projects.locations.phraseSets.get
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_P_PROJECTS_ID` | IMPORTING | `STRING` | projectsId |
| `IV_P_LOCATIONS_ID` | IMPORTING | `STRING` | locationsId |
| `IV_P_PHRASE_SETS_ID` | IMPORTING | `STRING` | phraseSetsId |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_014` | PhraseSet |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### LIST_CUSTOM_CLASSES

- Description: speech.projects.locations.customClasses.list
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_Q_PAGESIZE` | IMPORTING | `STRING` | pageSize |
| `IV_Q_PAGETOKEN` | IMPORTING | `STRING` | pageToken |
| `IV_P_PROJECTS_ID` | IMPORTING | `STRING` | projectsId |
| `IV_P_LOCATIONS_ID` | IMPORTING | `STRING` | locationsId |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_008` | ListCustomClassesResponse |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### LIST_OPERATIONS

- Description: speech.operations.list
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_Q_FILTER` | IMPORTING | `STRING` | filter |
| `IV_Q_NAME` | IMPORTING | `STRING` | name |
| `IV_Q_PAGESIZE` | IMPORTING | `STRING` | pageSize |
| `IV_Q_PAGETOKEN` | IMPORTING | `STRING` | pageToken |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_009` | ListOperationsResponse |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### LIST_PHRASE_SETS

- Description: speech.projects.locations.phraseSets.list
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_Q_PAGESIZE` | IMPORTING | `STRING` | pageSize |
| `IV_Q_PAGETOKEN` | IMPORTING | `STRING` | pageToken |
| `IV_P_PROJECTS_ID` | IMPORTING | `STRING` | projectsId |
| `IV_P_LOCATIONS_ID` | IMPORTING | `STRING` | locationsId |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_010` | ListPhraseSetResponse |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### LONGRUNNINGRECOGNIZE_SPEECH

- Description: speech.speech.longrunningrecognize
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IS_INPUT` | IMPORTING | `TY_011` | LongRunningRecognizeRequest |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_012` | Operation |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### PATCH_CUSTOM_CLASSES

- Description: speech.projects.locations.customClasses.patch
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_Q_UPDATEMASK` | IMPORTING | `STRING` | updateMask |
| `IV_P_PROJECTS_ID` | IMPORTING | `STRING` | projectsId |
| `IV_P_LOCATIONS_ID` | IMPORTING | `STRING` | locationsId |
| `IV_P_CUSTOM_CLASSES_ID` | IMPORTING | `STRING` | customClassesId |
| `IS_INPUT` | IMPORTING | `TY_005` | CustomClass |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_005` | CustomClass |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### PATCH_PHRASE_SETS

- Description: speech.projects.locations.phraseSets.patch
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IV_Q_UPDATEMASK` | IMPORTING | `STRING` | updateMask |
| `IV_P_PROJECTS_ID` | IMPORTING | `STRING` | projectsId |
| `IV_P_LOCATIONS_ID` | IMPORTING | `STRING` | locationsId |
| `IV_P_PHRASE_SETS_ID` | IMPORTING | `STRING` | phraseSetsId |
| `IS_INPUT` | IMPORTING | `TY_014` | PhraseSet |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_014` | PhraseSet |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### RECOGNIZE_SPEECH

- Description: speech.speech.recognize
- Visibility: PUBLIC

#### Parameters

| Name | Category | Type | Description |
|---|---|---|---|
| `IS_INPUT` | IMPORTING | `TY_018` | RecognizeRequest |
| `ES_RAW` | EXPORTING | `DATA` | Raw Output Data |
| `ES_OUTPUT` | EXPORTING | `TY_019` | RecognizeResponse |
| `EV_RET_CODE` | EXPORTING | `I` | Return Code |
| `EV_ERR_TEXT` | EXPORTING | `STRING` | Error Text |
| `ES_ERR_RESP` | EXPORTING | `/GOOG/ERR_RESP` | Error Response |

#### Exception

| Name | Description |
|---|---|
| `/GOOG/CX_SDK` | ABAP SDK for Google Cloud: Exception Class |

### CLOSE

- Description: Close Connection
- Visibility: PUBLIC