Reference documentation and code samples for the Cloud Speech V2 Client class SpeechAdaptation.
Provides "hints" to the speech recognizer to favor specific words and phrases in the results. PhraseSets can be specified as an inline resource, or a reference to an existing PhraseSet resource.
Generated from protobuf message google.cloud.speech.v2.SpeechAdaptation
Namespace
Google \ Cloud \ Speech \ V2Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ phrase_sets |
array<SpeechAdaptation\AdaptationPhraseSet>
A list of inline or referenced PhraseSets. |
↳ custom_classes |
array<CustomClass>
A list of inline CustomClasses. Existing CustomClass resources can be referenced directly in a PhraseSet. |
getPhraseSets
A list of inline or referenced PhraseSets.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setPhraseSets
A list of inline or referenced PhraseSets.
Parameter | |
---|---|
Name | Description |
var |
array<SpeechAdaptation\AdaptationPhraseSet>
|
Returns | |
---|---|
Type | Description |
$this |
getCustomClasses
A list of inline CustomClasses. Existing CustomClass resources can be referenced directly in a PhraseSet.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setCustomClasses
A list of inline CustomClasses. Existing CustomClass resources can be referenced directly in a PhraseSet.
Parameter | |
---|---|
Name | Description |
var |
array<CustomClass>
|
Returns | |
---|---|
Type | Description |
$this |