Gcp/speech
@swamp/gcp/speechv2026.05.25.1
01README
Google Cloud speech infrastructure models
02Release Notes
- Updated: customclasses, phrasesets
03Models
@swamp/gcp/speech/customclassesv2026.05.25.1customclasses.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| customClass? | object | A set of words or phrases that represents a common concept likely to appear in your audio, for example a list of passenger ship names. CustomClass items can be substituted into placeholders that you set in PhraseSet phrases. |
| customClassId? | string | If this custom class is a resource, the custom_class_id is the resource id of the CustomClass. Case sensitive. |
| annotations? | record | Output only. Allows users to store small amounts of arbitrary data. Both the key and the value must be 63 characters or less each. At most 100 annotations. This field is not used. |
| deleteTime? | string | Output only. The time at which this resource was requested for deletion. This field is not used. |
| displayName? | string | Output only. User-settable, human-readable name for the CustomClass. Must be 63 characters or less. This field is not used. |
| etag? | string | Output only. This checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an up-to-date value before proceeding. This field is not used. |
| expireTime? | string | Output only. The time at which this resource will be purged. This field is not used. |
| items? | array | A collection of class items. |
| kmsKeyName? | string | Output only. The [KMS key name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which the content of the ClassItem is encrypted. The expected format is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. |
| kmsKeyVersionName? | string | Output only. The [KMS key version name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions) with which content of the ClassItem is encrypted. The expected format is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`. |
| name? | string | The resource name of the custom class. |
| reconciling? | boolean | Output only. Whether or not this CustomClass is in the process of being updated. This field is not used. |
| state? | enum | Output only. The CustomClass lifecycle state. This field is not used. |
| uid? | string | Output only. System-assigned unique identifier for the CustomClass. This field is not used. |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
fn create(waitForReady?: boolean)
Create a customClasses
| Argument | Type | Description |
|---|---|---|
| waitForReady? | boolean | Wait for the resource to reach a ready state after creation (default: true) |
fn get(identifier: string)
Get a customClasses
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the customClasses |
fn update(waitForReady?: boolean)
Update customClasses attributes
| Argument | Type | Description |
|---|---|---|
| waitForReady? | boolean | Wait for the resource to reach a ready state after update (default: true) |
fn delete(identifier: string)
Delete the customClasses
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the customClasses |
fn sync()
Sync customClasses state from GCP
fn list(pageSize?: number, maxPages?: number)
List customClasses resources
| Argument | Type | Description |
|---|---|---|
| pageSize? | number | The maximum number of custom classes to return. The service may return fewer than this value. If unspecified, at most 50 custom classes will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
| maxPages? | number | Maximum number of pages to fetch (default: 10) |
Resources
state(infinite)— A set of words or phrases that represents a common concept likely to appear i...
@swamp/gcp/speech/phrasesetsv2026.05.25.1phrasesets.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| phraseSet? | object | Provides "hints" to the speech recognizer to favor specific words and phrases in the results. |
| phraseSetId? | string | Required. The ID to use for the phrase set, which will become the final component of the phrase set's resource name. This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and be 4-63 characters. |
| annotations? | record | Output only. Allows users to store small amounts of arbitrary data. Both the key and the value must be 63 characters or less each. At most 100 annotations. This field is not used. |
| boost? | number | Hint Boost. Positive value will increase the probability that a specific phrase will be recognized over other similar sounding phrases. The higher the boost, the higher the chance of false positive recognition as well. Negative boost values would correspond to anti-biasing. Anti-biasing is not enabled, so negative boost will simply be ignored. Though `boost` can accept a wide range of positive values, most use cases are best served with values between 0 (exclusive) and 20. We recommend using a b |
| deleteTime? | string | Output only. The time at which this resource was requested for deletion. This field is not used. |
| displayName? | string | Output only. User-settable, human-readable name for the PhraseSet. Must be 63 characters or less. This field is not used. |
| etag? | string | Output only. This checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an up-to-date value before proceeding. This field is not used. |
| expireTime? | string | Output only. The time at which this resource will be purged. This field is not used. |
| kmsKeyName? | string | Output only. The [KMS key name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which the content of the PhraseSet is encrypted. The expected format is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. |
| kmsKeyVersionName? | string | Output only. The [KMS key version name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions) with which content of the PhraseSet is encrypted. The expected format is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`. |
| name? | string | The resource name of the phrase set. |
| phrases? | array | A list of word and phrases. |
| reconciling? | boolean | Output only. Whether or not this PhraseSet is in the process of being updated. This field is not used. |
| state? | enum | Output only. The CustomClass lifecycle state. This field is not used. |
| uid? | string | Output only. System-assigned unique identifier for the PhraseSet. This field is not used. |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
fn create(waitForReady?: boolean)
Create a phraseSets
| Argument | Type | Description |
|---|---|---|
| waitForReady? | boolean | Wait for the resource to reach a ready state after creation (default: true) |
fn get(identifier: string)
Get a phraseSets
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the phraseSets |
fn update(waitForReady?: boolean)
Update phraseSets attributes
| Argument | Type | Description |
|---|---|---|
| waitForReady? | boolean | Wait for the resource to reach a ready state after update (default: true) |
fn delete(identifier: string)
Delete the phraseSets
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the phraseSets |
fn sync()
Sync phraseSets state from GCP
fn list(pageSize?: number, maxPages?: number)
List phraseSets resources
| Argument | Type | Description |
|---|---|---|
| pageSize? | number | The maximum number of phrase sets to return. The service may return fewer than this value. If unspecified, at most 50 phrase sets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
| maxPages? | number | Maximum number of pages to fetch (default: 10) |
Resources
state(infinite)— Provides "hints" to the speech recognizer to favor specific words and phrases...
04Previous Versions
2026.05.24.1May 24, 2026
- Updated: customclasses, phrasesets
2026.05.21.2May 21, 2026
- Updated: customclasses, phrasesets
2026.05.21.1May 21, 2026
2026.05.19.2May 19, 2026
2026.05.19.1May 19, 2026
2026.05.18.1May 18, 2026
2026.04.23.1Apr 23, 2026
2026.04.03.3Apr 3, 2026
- Updated: customclasses, phrasesets
2026.04.03.1Apr 3, 2026
- Updated: customclasses, phrasesets
2026.04.02.2Apr 2, 2026
2026.03.27.1Mar 27, 2026
- Added: customclasses, phrasesets
05Stats
A
100 / 100
Downloads
0
Archive size
36.6 KB
Verified by Swamp
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned
06Platforms
07Labels