Cloud Speech V1p1beta1 Client - Class SpeechAdaptation (1.13.1)

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

Namespace

Google \ Cloud \ Speech \ V1p1beta1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ phrase_setsarray<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_referencesarray

A collection of phrase set resource names to use.

↳ custom_classesarray<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.

↳ abnf_grammarGoogle\Cloud\Speech\V1p1beta1\SpeechAdaptation\ABNFGrammar

Augmented Backus-Naur form (ABNF) is a standardized grammar notation comprised by a set of derivation rules. See specifications: https://www.w3.org/TR/speech-grammar

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.

Returns
TypeDescription
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.

Parameter
NameDescription
vararray<Google\Cloud\Speech\V1p1beta1\PhraseSet>
Returns
TypeDescription
$this

getPhraseSetReferences

A collection of phrase set resource names to use.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setPhraseSetReferences

A collection of phrase set resource names to use.

Parameter
NameDescription
varstring[]
Returns
TypeDescription
$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.

Returns
TypeDescription
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.

Parameter
NameDescription
vararray<Google\Cloud\Speech\V1p1beta1\CustomClass>
Returns
TypeDescription
$this

getAbnfGrammar

Augmented Backus-Naur form (ABNF) is a standardized grammar notation comprised by a set of derivation rules.

See specifications: https://www.w3.org/TR/speech-grammar

Returns
TypeDescription
Google\Cloud\Speech\V1p1beta1\SpeechAdaptation\ABNFGrammar|null

hasAbnfGrammar

clearAbnfGrammar

setAbnfGrammar

Augmented Backus-Naur form (ABNF) is a standardized grammar notation comprised by a set of derivation rules.

See specifications: https://www.w3.org/TR/speech-grammar

Parameter
NameDescription
varGoogle\Cloud\Speech\V1p1beta1\SpeechAdaptation\ABNFGrammar
Returns
TypeDescription
$this