Skip to content

SubtitlingConfig

Source code in docs_src/capo_elementalinference/types/subtitling_config.py
class SubtitlingConfig(TypedDict, closed=True):
    language: (
        "capo_elementalinference.types.transcription_language.TranscriptionLanguage"
    )
    """<p>The language of the audio in the source media. Elemental Inference uses this setting to optimize transcription accuracy. Specify the language using an ISO 639-2/T three-letter code, optionally with a region subtag. Supported values: eng, eng-au, eng-gb, eng-us, fra, ita, deu, spa, por. </p>"""
    aspect_ratio: NotRequired["capo_elementalinference.types.aspect_ratio.AspectRatio"]
    """<p>The aspect ratio of the output video, specified as width and height integer values. Elemental Inference uses the aspect ratio to determine subtitle layout and line lengths. </p>"""
    dictionary: NotRequired["capo_elementalinference.types.dictionary_id.DictionaryId"]
    """<p>The ID of a custom dictionary to improve transcription accuracy for domain-specific terminology. Use the CreateDictionary operation to create a dictionary. </p>"""
    profanity_filter: NotRequired[
        "capo_elementalinference.types.profanity_filter_mode.ProfanityFilterMode"
    ]
    """<p>Controls how profanity is handled in the generated subtitles. Valid values: DISABLED (no filtering, default), CENSOR (replace profanity with asterisks), DROP (remove profanity from the transcript). </p>"""

aspect_ratio instance-attribute

aspect_ratio: NotRequired[AspectRatio]

The aspect ratio of the output video, specified as width and height integer values. Elemental Inference uses the aspect ratio to determine subtitle layout and line lengths.

dictionary instance-attribute

dictionary: NotRequired[DictionaryId]

The ID of a custom dictionary to improve transcription accuracy for domain-specific terminology. Use the CreateDictionary operation to create a dictionary.

language instance-attribute

The language of the audio in the source media. Elemental Inference uses this setting to optimize transcription accuracy. Specify the language using an ISO 639-2/T three-letter code, optionally with a region subtag. Supported values: eng, eng-au, eng-gb, eng-us, fra, ita, deu, spa, por.

profanity_filter instance-attribute

profanity_filter: NotRequired[ProfanityFilterMode]

Controls how profanity is handled in the generated subtitles. Valid values: DISABLED (no filtering, default), CENSOR (replace profanity with asterisks), DROP (remove profanity from the transcript).