Skip to main content

Gcp/speech

@swamp/gcp/speechv2026.05.25.1· 8d agoMODELS
01README

Google Cloud speech infrastructure models

02Release Notes
  • Updated: customclasses, phrasesets
03Models2
@swamp/gcp/speech/customclassesv2026.05.25.1customclasses.ts

Global Arguments

ArgumentTypeDescription
customClass?objectA 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?stringIf this custom class is a resource, the custom_class_id is the resource id of the CustomClass. Case sensitive.
annotations?recordOutput 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?stringOutput only. The time at which this resource was requested for deletion. This field is not used.
displayName?stringOutput only. User-settable, human-readable name for the CustomClass. Must be 63 characters or less. This field is not used.
etag?stringOutput 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?stringOutput only. The time at which this resource will be purged. This field is not used.
items?arrayA collection of class items.
kmsKeyName?stringOutput 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?stringOutput 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?stringThe resource name of the custom class.
reconciling?booleanOutput only. Whether or not this CustomClass is in the process of being updated. This field is not used.
state?enumOutput only. The CustomClass lifecycle state. This field is not used.
uid?stringOutput only. System-assigned unique identifier for the CustomClass. This field is not used.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
fn create(waitForReady?: boolean)
Create a customClasses
ArgumentTypeDescription
waitForReady?booleanWait for the resource to reach a ready state after creation (default: true)
fn get(identifier: string)
Get a customClasses
ArgumentTypeDescription
identifierstringThe name of the customClasses
fn update(waitForReady?: boolean)
Update customClasses attributes
ArgumentTypeDescription
waitForReady?booleanWait for the resource to reach a ready state after update (default: true)
fn delete(identifier: string)
Delete the customClasses
ArgumentTypeDescription
identifierstringThe name of the customClasses
fn sync()
Sync customClasses state from GCP
fn list(pageSize?: number, maxPages?: number)
List customClasses resources
ArgumentTypeDescription
pageSize?numberThe 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?numberMaximum 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

ArgumentTypeDescription
phraseSet?objectProvides "hints" to the speech recognizer to favor specific words and phrases in the results.
phraseSetId?stringRequired. 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?recordOutput 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?numberHint 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?stringOutput only. The time at which this resource was requested for deletion. This field is not used.
displayName?stringOutput only. User-settable, human-readable name for the PhraseSet. Must be 63 characters or less. This field is not used.
etag?stringOutput 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?stringOutput only. The time at which this resource will be purged. This field is not used.
kmsKeyName?stringOutput 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?stringOutput 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?stringThe resource name of the phrase set.
phrases?arrayA list of word and phrases.
reconciling?booleanOutput only. Whether or not this PhraseSet is in the process of being updated. This field is not used.
state?enumOutput only. The CustomClass lifecycle state. This field is not used.
uid?stringOutput only. System-assigned unique identifier for the PhraseSet. This field is not used.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
fn create(waitForReady?: boolean)
Create a phraseSets
ArgumentTypeDescription
waitForReady?booleanWait for the resource to reach a ready state after creation (default: true)
fn get(identifier: string)
Get a phraseSets
ArgumentTypeDescription
identifierstringThe name of the phraseSets
fn update(waitForReady?: boolean)
Update phraseSets attributes
ArgumentTypeDescription
waitForReady?booleanWait for the resource to reach a ready state after update (default: true)
fn delete(identifier: string)
Delete the phraseSets
ArgumentTypeDescription
identifierstringThe name of the phraseSets
fn sync()
Sync phraseSets state from GCP
fn list(pageSize?: number, maxPages?: number)
List phraseSets resources
ArgumentTypeDescription
pageSize?numberThe 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?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— Provides "hints" to the speech recognizer to favor specific words and phrases...
04Previous Versions11
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