Skip to content

AudioLanguageSelection

Source code in docs_src/capo_medialive/types/audio_language_selection.py
class AudioLanguageSelection(TypedDict, closed=True):
    language_code: NotRequired["capo_medialive.types.__string.__string"]
    """Selects a specific three-letter language code from within an audio source."""
    language_selection_policy: NotRequired[
        "capo_medialive.types.audio_language_selection_policy.AudioLanguageSelectionPolicy"
    ]
    """When set to "strict", the transport stream demux strictly identifies audio streams by their language descriptor. If a PMT update occurs such that an audio stream matching the initially selected language is no longer present then mute will be encoded until the language returns. If "loose", then on a PMT update the demux will choose another audio stream in the program with the same stream type if it can't find one with the same language."""

language_code instance-attribute

language_code: NotRequired[__string]

Selects a specific three-letter language code from within an audio source.

language_selection_policy instance-attribute

language_selection_policy: NotRequired[AudioLanguageSelectionPolicy]

When set to "strict", the transport stream demux strictly identifies audio streams by their language descriptor. If a PMT update occurs such that an audio stream matching the initially selected language is no longer present then mute will be encoded until the language returns. If "loose", then on a PMT update the demux will choose another audio stream in the program with the same stream type if it can't find one with the same language.