# Class RecognitionConfig (2.40.0)

2.40.0 (latest) 2.39.0 2.38.0 2.37.0 2.36.1 2.35.0 2.34.0 2.33.0 2.32.0 2.31.0 2.30.0 2.29.0 2.28.1 2.27.0 2.26.1 2.25.1 2.24.1 2.23.0 2.22.0 2.21.1 2.20.1 2.19.0 2.18.0 2.17.3 2.16.2 2.15.1 2.14.1 2.13.1 2.12.0 2.11.1 2.10.0 2.9.3 2.8.0 2.7.0 2.6.0 2.5.1 2.4.1 2.3.0 2.2.1 2.1.0 2.0.1 1.3.4 1.2.0 1.1.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` | `https://docs.cloud.google.com/python/docs/reference/speech/latest/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` | `https://docs.cloud.google.com/python/docs/reference/speech/latest/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` | `https://docs.cloud.google.com/python/docs/reference/speech/latest/google.cloud.speech_v2.types.RecognitionFeatures` Speech recognition features to enable. |
| `adaptation` | `https://docs.cloud.google.com/python/docs/reference/speech/latest/google.cloud.speech_v2.types.SpeechAdaptation` Speech adaptation context that weights recognizer predictions for specific words and phrases. |
| `transcript_normalization` | `https://docs.cloud.google.com/python/docs/reference/speech/latest/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` | `https://docs.cloud.google.com/python/docs/reference/speech/latest/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. |
| `denoiser_config` | `https://docs.cloud.google.com/python/docs/reference/speech/latest/google.cloud.speech_v2.types.DenoiserConfig` Optional. Optional denoiser config. May not be supported for all models and may have no effect. |