Gcp/speech
@swamp/gcp/speechv2026.07.21.3
01README
Google Cloud speech infrastructure models
02Release Notes
- Updated: customclasses, phrasesets
03Models
@swamp/gcp/speech/customclassesv2026.07.21.3customclasses.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| accessToken? | string | GCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| credentialsJson? | string | GCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| project? | string | GCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables. |
| scopes? | string | Comma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes. |
| customClass? | object | Required. The custom class to create. |
| 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(identifier?: string, waitForReady?: boolean)
Update customClasses attributes
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific customClasses by name (e.g. one discovered by list) |
| 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(identifier?: string)
Sync customClasses state from GCP
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific customClasses by name (e.g. one discovered by list) |
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.07.21.3phrasesets.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| accessToken? | string | GCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| credentialsJson? | string | GCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| project? | string | GCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables. |
| scopes? | string | Comma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes. |
| phraseSet? | object | Required. The phrase set to create. |
| 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(identifier?: string, waitForReady?: boolean)
Update phraseSets attributes
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific phraseSets by name (e.g. one discovered by list) |
| 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(identifier?: string)
Sync phraseSets state from GCP
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific phraseSets by name (e.g. one discovered by list) |
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.07.21.1
- Updated: customclasses, phrasesets
2026.07.20.1
- Updated: customclasses, phrasesets
2026.07.19.1
- Updated: customclasses, phrasesets
2026.07.18.2
- Updated: customclasses, phrasesets
2026.07.17.3
- Updated: customclasses, phrasesets
2026.07.17.2
- Updated: customclasses, phrasesets
2026.07.17.1
- Updated: customclasses, phrasesets
Added 2, removed 1 models
2026.06.08.2
- Updated: customclasses, phrasesets
2026.06.07.1
- Updated: customclasses, phrasesets
2026.05.25.1
- Updated: customclasses, phrasesets
Modified 2 models
2026.05.24.1
- Updated: customclasses, phrasesets
2026.05.21.2
- Updated: customclasses, phrasesets
2026.05.21.1
2026.05.19.2
2026.05.19.1
2026.05.18.1
2026.04.23.1
2026.04.03.3
- Updated: customclasses, phrasesets
2026.04.03.1
- Updated: customclasses, phrasesets
05Stats
A
100 / 100
Downloads
0
Archive size
43.3 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 types (deprecated)1/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