Class SpeechAdaptation (2.18.0)

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.

Attributes

NameDescription
phrase_sets MutableSequence[google.cloud.speech_v2.types.SpeechAdaptation.AdaptationPhraseSet]
A list of inline or referenced phrase sets.
custom_classes MutableSequence[google.cloud.speech_v2.types.CustomClass]
A list of inline custom classes. Existing custom class resources can be referenced directly in a phrase set.

Classes

AdaptationPhraseSet

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: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields