SubtitlingConfig
¶
Source code in docs_src/capo_elementalinference/types/subtitling_config.py
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
¶
language: TranscriptionLanguage
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 – English
-
eng-au – English (Australia)
-
eng-gb – English (United Kingdom)
-
eng-us – English (United States)
-
fra – French
-
ita – Italian
-
deu – German
-
spa – Spanish
-
por – Portuguese
-
ara – Arabic
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).