Reference documentation and code samples for the Cloud Speech V2 Client class AdaptationPhraseSet.
A biasing PhraseSet, which can be either a string referencing the name of an existing PhraseSets resource, or an inline definition of a PhraseSet.
Generated from protobuf message google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet
Namespace
Google \ Cloud \ Speech \ V2 \ SpeechAdaptationMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ phrase_set |
string
The name of an existing PhraseSet resource. The user must have read access to the resource and it must not be deleted. |
↳ inline_phrase_set |
Google\Cloud\Speech\V2\PhraseSet
An inline defined PhraseSet. |
getPhraseSet
The name of an existing PhraseSet resource. The user must have read access to the resource and it must not be deleted.
Returns | |
---|---|
Type | Description |
string |
hasPhraseSet
setPhraseSet
The name of an existing PhraseSet resource. The user must have read access to the resource and it must not be deleted.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getInlinePhraseSet
An inline defined PhraseSet.
Returns | |
---|---|
Type | Description |
Google\Cloud\Speech\V2\PhraseSet|null |
hasInlinePhraseSet
setInlinePhraseSet
An inline defined PhraseSet.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Speech\V2\PhraseSet
|
Returns | |
---|---|
Type | Description |
$this |
getValue
Returns | |
---|---|
Type | Description |
string |