Class RecognitionConfig (2.23.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:


Automatically detect decoding parameters. Preferred for supported formats. This field is a member of oneof_ decoding_config.
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
Speech recognition features to enable.
Speech adaptation context that weights recognizer predictions for specific words and phrases.
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.