Skip to main content

phrase_sets

Overview

Namephrase_sets
TypeResource
Idgoogle.speech.phrase_sets

Fields

NameDatatypeDescription
namestringThe resource name of the phrase set.
boostnumberHint 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 binary search approach to finding the optimal value for your use case as well as adding phrases both with and without boost to your requests.
kmsKeyNamestringOutput only. The KMS key name with which the content of the PhraseSet is encrypted. The expected format is projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.
kmsKeyVersionNamestringOutput only. The KMS key version name 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}.
phrasesarrayA list of word and phrases.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, phraseSetsId, projectsIdGet a phrase set.
listSELECTlocationsId, projectsIdList phrase sets.
createINSERTlocationsId, projectsIdCreate a set of phrase hints. Each item in the set can be a single word or a multi-word phrase. The items in the PhraseSet are favored by the recognition model when you send a call that includes the PhraseSet.
deleteDELETElocationsId, phraseSetsId, projectsIdDelete a phrase set.
_listEXEClocationsId, projectsIdList phrase sets.
patchEXEClocationsId, phraseSetsId, projectsIdUpdate a phrase set.