Class RecognitionConfig (2.29.0)

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

Provides information to the Recognizer that specifies how to process the recognition request.

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

Attributes

Name Description
auto_decoding_config google.cloud.speech_v2.types.AutoDetectDecodingConfig
Automatically detect decoding parameters. Preferred for supported formats. This field is a member of oneof_ decoding_config.
explicit_decoding_config google.cloud.speech_v2.types.ExplicitDecodingConfig
Explicitly specified decoding parameters. Required if using headerless PCM audio (linear16, mulaw, alaw). This field is a member of oneof_ decoding_config.
model str
Optional. Which model to use for recognition requests. Select the model best suited to your domain to get best results. Guidance for choosing which model to use can be found in the `Transcription Models Documentation
language_codes MutableSequence[str]
Optional. The language of the supplied audio as a BCP-47 __ language tag. Language tags are normalized to BCP-47 before they are used eg "en-us" becomes "en-US". Supported languages for each model are listed in the `Table of Supported Models
features google.cloud.speech_v2.types.RecognitionFeatures
Speech recognition features to enable.
adaptation google.cloud.speech_v2.types.SpeechAdaptation
Speech adaptation context that weights recognizer predictions for specific words and phrases.
transcript_normalization google.cloud.speech_v2.types.TranscriptNormalization
Optional. Use transcription normalization to automatically replace parts of the transcript with phrases of your choosing. For StreamingRecognize, this normalization only applies to stable partial transcripts (stability > 0.8) and final transcripts.
translation_config google.cloud.speech_v2.types.TranslationConfig
Optional. Optional configuration used to automatically run translation on the given audio to the desired language for supported models.