Class SpeechAdaptation (2.23.0)

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

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.

Attributes

NameDescription
phrase_sets MutableSequence[google.cloud.speech_v2.types.SpeechAdaptation.AdaptationPhraseSet]
A list of inline or referenced PhraseSets.
custom_classes MutableSequence[google.cloud.speech_v2.types.CustomClass]
A list of inline CustomClasses. Existing CustomClass resources can be referenced directly in a PhraseSet.

Classes

AdaptationPhraseSet

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

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

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