Send feedback
Class SpeechTranscriptionConfig (2.16.2)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
SpeechTranscriptionConfig ( mapping = None , * , ignore_unknown_fields = False , ** kwargs )
Config for SPEECH_TRANSCRIPTION.
Attributes
Name
Description
language_code
str
Required. *Required* The language of the supplied audio as a
BCP-47
__
language tag. Example: "en-US". See `Language
Support
max_alternatives
int
Optional. Maximum number of recognition hypotheses to be
returned. Specifically, the maximum number of
SpeechRecognitionAlternative
messages within each
SpeechTranscription
. The server may return fewer than
max_alternatives
. Valid values are 0
-30
. A value
of 0
or 1
will return a maximum of one. If omitted,
will return a maximum of one.
filter_profanity
bool
Optional. If set to true
, the server will attempt to
filter out profanities, replacing all but the initial
character in each filtered word with asterisks, e.g. "f***".
If set to false
or omitted, profanities won't be
filtered out.
speech_contexts
MutableSequence[google.cloud.videointelligence_v1p1beta1.types.SpeechContext ]
Optional. A means to provide context to
assist the speech recognition.
enable_automatic_punctuation
bool
Optional. If 'true', adds punctuation to
recognition result hypotheses. This feature is
only available in select languages. Setting this
for requests in other languages has no effect at
all. The default 'false' value does not add
punctuation to result hypotheses. NOTE: "This is
currently offered as an experimental service,
complimentary to all users. In the future this
may be exclusively available as a premium
feature.".
audio_tracks
MutableSequence[int]
Optional. For file formats, such as MXF or
MKV, supporting multiple audio tracks, specify
up to two tracks. Default: track 0.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class SpeechTranscriptionConfig (2.16.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.16.2 (latest)](/python/docs/reference/videointelligence/latest/google.cloud.videointelligence_v1p1beta1.types.SpeechTranscriptionConfig)\n- [2.16.0](/python/docs/reference/videointelligence/2.16.0/google.cloud.videointelligence_v1p1beta1.types.SpeechTranscriptionConfig)\n- [2.15.0](/python/docs/reference/videointelligence/2.15.0/google.cloud.videointelligence_v1p1beta1.types.SpeechTranscriptionConfig)\n- [2.14.1](/python/docs/reference/videointelligence/2.14.1/google.cloud.videointelligence_v1p1beta1.types.SpeechTranscriptionConfig)\n- [2.13.5](/python/docs/reference/videointelligence/2.13.5/google.cloud.videointelligence_v1p1beta1.types.SpeechTranscriptionConfig)\n- [2.12.0](/python/docs/reference/videointelligence/2.12.0/google.cloud.videointelligence_v1p1beta1.types.SpeechTranscriptionConfig)\n- [2.11.4](/python/docs/reference/videointelligence/2.11.4/google.cloud.videointelligence_v1p1beta1.types.SpeechTranscriptionConfig)\n- [2.10.1](/python/docs/reference/videointelligence/2.10.1/google.cloud.videointelligence_v1p1beta1.types.SpeechTranscriptionConfig)\n- [2.9.0](/python/docs/reference/videointelligence/2.9.0/google.cloud.videointelligence_v1p1beta1.types.SpeechTranscriptionConfig)\n- [2.8.3](/python/docs/reference/videointelligence/2.8.3/google.cloud.videointelligence_v1p1beta1.types.SpeechTranscriptionConfig)\n- [2.7.1](/python/docs/reference/videointelligence/2.7.1/google.cloud.videointelligence_v1p1beta1.types.SpeechTranscriptionConfig)\n- [2.6.1](/python/docs/reference/videointelligence/2.6.1/google.cloud.videointelligence_v1p1beta1.types.SpeechTranscriptionConfig)\n- [2.5.1](/python/docs/reference/videointelligence/2.5.1/google.cloud.videointelligence_v1p1beta1.types.SpeechTranscriptionConfig)\n- [2.4.0](/python/docs/reference/videointelligence/2.4.0/google.cloud.videointelligence_v1p1beta1.types.SpeechTranscriptionConfig)\n- [2.3.3](/python/docs/reference/videointelligence/2.3.3/google.cloud.videointelligence_v1p1beta1.types.SpeechTranscriptionConfig)\n- [2.2.0](/python/docs/reference/videointelligence/2.2.0/google.cloud.videointelligence_v1p1beta1.types.SpeechTranscriptionConfig)\n- [2.1.0](/python/docs/reference/videointelligence/2.1.0/google.cloud.videointelligence_v1p1beta1.types.SpeechTranscriptionConfig)\n- [2.0.0](/python/docs/reference/videointelligence/2.0.0/google.cloud.videointelligence_v1p1beta1.types.SpeechTranscriptionConfig)\n- [1.16.3](/python/docs/reference/videointelligence/1.16.3/google.cloud.videointelligence_v1p1beta1.types.SpeechTranscriptionConfig)\n- [1.15.0](/python/docs/reference/videointelligence/1.15.0/google.cloud.videointelligence_v1p1beta1.types.SpeechTranscriptionConfig)\n- [1.14.0](/python/docs/reference/videointelligence/1.14.0/google.cloud.videointelligence_v1p1beta1.types.SpeechTranscriptionConfig)\n- [1.13.0](/python/docs/reference/videointelligence/1.13.0/google.cloud.videointelligence_v1p1beta1.types.SpeechTranscriptionConfig)\n- [1.12.1](/python/docs/reference/videointelligence/1.12.1/google.cloud.videointelligence_v1p1beta1.types.SpeechTranscriptionConfig)\n- [1.11.0](/python/docs/reference/videointelligence/1.11.0/google.cloud.videointelligence_v1p1beta1.types.SpeechTranscriptionConfig)\n- [1.10.0](/python/docs/reference/videointelligence/1.10.0/google.cloud.videointelligence_v1p1beta1.types.SpeechTranscriptionConfig) \n\n SpeechTranscriptionConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nConfig for SPEECH_TRANSCRIPTION."]]