Reference documentation and code samples for the Cloud Speech V1p1beta1 Client class SpeechAdaptation.
Speech adaptation configuration.
Generated from protobuf message google.cloud.speech.v1p1beta1.SpeechAdaptation
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ phrase_sets
array< Google\Cloud\Speech\V1p1beta1\PhraseSet
>
A collection of phrase sets. To specify the hints inline, leave the phrase set's name
blank and fill in the rest of its fields. Any phrase set can use any custom class.
↳ phrase_set_references
array
A collection of phrase set resource names to use.
↳ custom_classes
array< Google\Cloud\Speech\V1p1beta1\CustomClass
>
A collection of custom classes. To specify the classes inline, leave the class' name
blank and fill in the rest of its fields, giving it a unique custom_class_id
. Refer to the inline defined class in phrase hints by its custom_class_id
.
getPhraseSets
A collection of phrase sets. To specify the hints inline, leave the
phrase set's name
blank and fill in the rest of its fields. Any
phrase set can use any custom class.
Generated from protobuf field repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
Google\Protobuf\Internal\RepeatedField
setPhraseSets
A collection of phrase sets. To specify the hints inline, leave the
phrase set's name
blank and fill in the rest of its fields. Any
phrase set can use any custom class.
Generated from protobuf field repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
$this
getPhraseSetReferences
A collection of phrase set resource names to use.
Generated from protobuf field repeated string phrase_set_references = 2 [(.google.api.resource_reference) = {
Google\Protobuf\Internal\RepeatedField
setPhraseSetReferences
A collection of phrase set resource names to use.
Generated from protobuf field repeated string phrase_set_references = 2 [(.google.api.resource_reference) = {
var
string[]
$this
getCustomClasses
A collection of custom classes. To specify the classes inline, leave the
class' name
blank and fill in the rest of its fields, giving it a unique custom_class_id
. Refer to the inline defined class in phrase hints by its custom_class_id
.
Generated from protobuf field repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 3;
Google\Protobuf\Internal\RepeatedField
setCustomClasses
A collection of custom classes. To specify the classes inline, leave the
class' name
blank and fill in the rest of its fields, giving it a unique custom_class_id
. Refer to the inline defined class in phrase hints by its custom_class_id
.
Generated from protobuf field repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 3;
$this