Class SpeechAdaptation (2.16.1)

SpeechAdaptation(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Provides "hints" to the speech recognizer to favor specific words and phrases in the results. Phrase sets can be specified as an inline resource, or a reference to an existing phrase set resource.


phrase_sets Sequence[]
A list of inline or referenced phrase sets.
custom_classes Sequence[]
A list of inline custom classes. Existing custom class resources can be referenced directly in a phrase set.


builtins.object > proto.message.Message > SpeechAdaptation



AdaptationPhraseSet(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A biasing phrase set, which can be either a string referencing the name of an existing phrase set resource, or an inline definition of a phrase set.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: