Skip to content
v2.277.0

AudioSelectorProperty Struct ​

Information about one audio to extract from the input.

The parent of this entity is InputSettings.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_medialive as medialive } from 'aws-cdk-lib';
const audioSelectorProperty: medialive.CfnChannel.AudioSelectorProperty = {
  name: 'name',
  selectorSettings: {
    audioHlsRenditionSelection: {
      groupId: 'groupId',
      name: 'name',
    },
    audioLanguageSelection: {
      languageCode: 'languageCode',
      languageSelectionPolicy: 'languageSelectionPolicy',
    },
    audioPidSelection: {
      pid: 123,
      pids: [{
        dolbyEDecode: {
          programSelection: 'programSelection',
        },
        pid: 123,
        premixSettings: {
          audioNormalizationSettings: {
            algorithm: 'algorithm',
            algorithmControl: 'algorithmControl',
            peakCalculation: 'peakCalculation',
            peakLimiterThreshold: 123,
            targetLkfs: 123,
          },
          channels: 123,
          gainDb: 123,
          remixSettings: {
            channelMappings: [{
              inputChannelLevels: [{
                gain: 123,
                inputChannel: 123,
              }],
              outputChannel: 123,
            }],
            channelsIn: 123,
            channelsOut: 123,
          },
        },
      }],
    },
    audioTrackSelection: {
      dolbyEDecode: {
        programSelection: 'programSelection',
      },
      tracks: [{
        premixSettings: {
          audioNormalizationSettings: {
            algorithm: 'algorithm',
            algorithmControl: 'algorithmControl',
            peakCalculation: 'peakCalculation',
            peakLimiterThreshold: 123,
            targetLkfs: 123,
          },
          channels: 123,
          gainDb: 123,
          remixSettings: {
            channelMappings: [{
              inputChannelLevels: [{
                gain: 123,
                inputChannel: 123,
              }],
              outputChannel: 123,
            }],
            channelsIn: 123,
            channelsOut: 123,
          },
        },
        track: 123,
      }],
    },
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_medialive as medialive

audio_selector_property = medialive.CfnChannel.AudioSelectorProperty(
    name="name",
    selector_settings=medialive.CfnChannel.AudioSelectorSettingsProperty(
        audio_hls_rendition_selection=medialive.CfnChannel.AudioHlsRenditionSelectionProperty(
            group_id="groupId",
            name="name"
        ),
        audio_language_selection=medialive.CfnChannel.AudioLanguageSelectionProperty(
            language_code="languageCode",
            language_selection_policy="languageSelectionPolicy"
        ),
        audio_pid_selection=medialive.CfnChannel.AudioPidSelectionProperty(
            pid=123,
            pids=[medialive.CfnChannel.AudioPidProperty(
                dolby_e_decode=medialive.CfnChannel.AudioDolbyEDecodeProperty(
                    program_selection="programSelection"
                ),
                pid=123,
                premix_settings=medialive.CfnChannel.AudioPreMixerSettingsProperty(
                    audio_normalization_settings=medialive.CfnChannel.AudioNormalizationSettingsProperty(
                        algorithm="algorithm",
                        algorithm_control="algorithmControl",
                        peak_calculation="peakCalculation",
                        peak_limiter_threshold=123,
                        target_lkfs=123
                    ),
                    channels=123,
                    gain_db=123,
                    remix_settings=medialive.CfnChannel.RemixSettingsProperty(
                        channel_mappings=[medialive.CfnChannel.AudioChannelMappingProperty(
                            input_channel_levels=[medialive.CfnChannel.InputChannelLevelProperty(
                                gain=123,
                                input_channel=123
                            )],
                            output_channel=123
                        )],
                        channels_in=123,
                        channels_out=123
                    )
                )
            )]
        ),
        audio_track_selection=medialive.CfnChannel.AudioTrackSelectionProperty(
            dolby_e_decode=medialive.CfnChannel.AudioDolbyEDecodeProperty(
                program_selection="programSelection"
            ),
            tracks=[medialive.CfnChannel.AudioTrackProperty(
                premix_settings=medialive.CfnChannel.AudioPreMixerSettingsProperty(
                    audio_normalization_settings=medialive.CfnChannel.AudioNormalizationSettingsProperty(
                        algorithm="algorithm",
                        algorithm_control="algorithmControl",
                        peak_calculation="peakCalculation",
                        peak_limiter_threshold=123,
                        target_lkfs=123
                    ),
                    channels=123,
                    gain_db=123,
                    remix_settings=medialive.CfnChannel.RemixSettingsProperty(
                        channel_mappings=[medialive.CfnChannel.AudioChannelMappingProperty(
                            input_channel_levels=[medialive.CfnChannel.InputChannelLevelProperty(
                                gain=123,
                                input_channel=123
                            )],
                            output_channel=123
                        )],
                        channels_in=123,
                        channels_out=123
                    )
                ),
                track=123
            )]
        )
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.medialive.*;

AudioSelectorProperty audioSelectorProperty = AudioSelectorProperty.builder()
        .name("name")
        .selectorSettings(AudioSelectorSettingsProperty.builder()
                .audioHlsRenditionSelection(AudioHlsRenditionSelectionProperty.builder()
                        .groupId("groupId")
                        .name("name")
                        .build())
                .audioLanguageSelection(AudioLanguageSelectionProperty.builder()
                        .languageCode("languageCode")
                        .languageSelectionPolicy("languageSelectionPolicy")
                        .build())
                .audioPidSelection(AudioPidSelectionProperty.builder()
                        .pid(123)
                        .pids(List.of(AudioPidProperty.builder()
                                .dolbyEDecode(AudioDolbyEDecodeProperty.builder()
                                        .programSelection("programSelection")
                                        .build())
                                .pid(123)
                                .premixSettings(AudioPreMixerSettingsProperty.builder()
                                        .audioNormalizationSettings(AudioNormalizationSettingsProperty.builder()
                                                .algorithm("algorithm")
                                                .algorithmControl("algorithmControl")
                                                .peakCalculation("peakCalculation")
                                                .peakLimiterThreshold(123)
                                                .targetLkfs(123)
                                                .build())
                                        .channels(123)
                                        .gainDb(123)
                                        .remixSettings(RemixSettingsProperty.builder()
                                                .channelMappings(List.of(AudioChannelMappingProperty.builder()
                                                        .inputChannelLevels(List.of(InputChannelLevelProperty.builder()
                                                                .gain(123)
                                                                .inputChannel(123)
                                                                .build()))
                                                        .outputChannel(123)
                                                        .build()))
                                                .channelsIn(123)
                                                .channelsOut(123)
                                                .build())
                                        .build())
                                .build()))
                        .build())
                .audioTrackSelection(AudioTrackSelectionProperty.builder()
                        .dolbyEDecode(AudioDolbyEDecodeProperty.builder()
                                .programSelection("programSelection")
                                .build())
                        .tracks(List.of(AudioTrackProperty.builder()
                                .premixSettings(AudioPreMixerSettingsProperty.builder()
                                        .audioNormalizationSettings(AudioNormalizationSettingsProperty.builder()
                                                .algorithm("algorithm")
                                                .algorithmControl("algorithmControl")
                                                .peakCalculation("peakCalculation")
                                                .peakLimiterThreshold(123)
                                                .targetLkfs(123)
                                                .build())
                                        .channels(123)
                                        .gainDb(123)
                                        .remixSettings(RemixSettingsProperty.builder()
                                                .channelMappings(List.of(AudioChannelMappingProperty.builder()
                                                        .inputChannelLevels(List.of(InputChannelLevelProperty.builder()
                                                                .gain(123)
                                                                .inputChannel(123)
                                                                .build()))
                                                        .outputChannel(123)
                                                        .build()))
                                                .channelsIn(123)
                                                .channelsOut(123)
                                                .build())
                                        .build())
                                .track(123)
                                .build()))
                        .build())
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaLive;

var audioSelectorProperty = new AudioSelectorProperty {
    Name = "name",
    SelectorSettings = new AudioSelectorSettingsProperty {
        AudioHlsRenditionSelection = new AudioHlsRenditionSelectionProperty {
            GroupId = "groupId",
            Name = "name"
        },
        AudioLanguageSelection = new AudioLanguageSelectionProperty {
            LanguageCode = "languageCode",
            LanguageSelectionPolicy = "languageSelectionPolicy"
        },
        AudioPidSelection = new AudioPidSelectionProperty {
            Pid = 123,
            Pids = new [] { new AudioPidProperty {
                DolbyEDecode = new AudioDolbyEDecodeProperty {
                    ProgramSelection = "programSelection"
                },
                Pid = 123,
                PremixSettings = new AudioPreMixerSettingsProperty {
                    AudioNormalizationSettings = new AudioNormalizationSettingsProperty {
                        Algorithm = "algorithm",
                        AlgorithmControl = "algorithmControl",
                        PeakCalculation = "peakCalculation",
                        PeakLimiterThreshold = 123,
                        TargetLkfs = 123
                    },
                    Channels = 123,
                    GainDb = 123,
                    RemixSettings = new RemixSettingsProperty {
                        ChannelMappings = new [] { new AudioChannelMappingProperty {
                            InputChannelLevels = new [] { new InputChannelLevelProperty {
                                Gain = 123,
                                InputChannel = 123
                            } },
                            OutputChannel = 123
                        } },
                        ChannelsIn = 123,
                        ChannelsOut = 123
                    }
                }
            } }
        },
        AudioTrackSelection = new AudioTrackSelectionProperty {
            DolbyEDecode = new AudioDolbyEDecodeProperty {
                ProgramSelection = "programSelection"
            },
            Tracks = new [] { new AudioTrackProperty {
                PremixSettings = new AudioPreMixerSettingsProperty {
                    AudioNormalizationSettings = new AudioNormalizationSettingsProperty {
                        Algorithm = "algorithm",
                        AlgorithmControl = "algorithmControl",
                        PeakCalculation = "peakCalculation",
                        PeakLimiterThreshold = 123,
                        TargetLkfs = 123
                    },
                    Channels = 123,
                    GainDb = 123,
                    RemixSettings = new RemixSettingsProperty {
                        ChannelMappings = new [] { new AudioChannelMappingProperty {
                            InputChannelLevels = new [] { new InputChannelLevelProperty {
                                Gain = 123,
                                InputChannel = 123
                            } },
                            OutputChannel = 123
                        } },
                        ChannelsIn = 123,
                        ChannelsOut = 123
                    }
                },
                Track = 123
            } }
        }
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

audioSelectorProperty := &AudioSelectorProperty{
	Name: jsii.String("name"),
	SelectorSettings: &AudioSelectorSettingsProperty{
		AudioHlsRenditionSelection: &AudioHlsRenditionSelectionProperty{
			GroupId: jsii.String("groupId"),
			Name: jsii.String("name"),
		},
		AudioLanguageSelection: &AudioLanguageSelectionProperty{
			LanguageCode: jsii.String("languageCode"),
			LanguageSelectionPolicy: jsii.String("languageSelectionPolicy"),
		},
		AudioPidSelection: &AudioPidSelectionProperty{
			Pid: jsii.Number(123),
			Pids: []interface{}{
				&AudioPidProperty{
					DolbyEDecode: &AudioDolbyEDecodeProperty{
						ProgramSelection: jsii.String("programSelection"),
					},
					Pid: jsii.Number(123),
					PremixSettings: &AudioPreMixerSettingsProperty{
						AudioNormalizationSettings: &AudioNormalizationSettingsProperty{
							Algorithm: jsii.String("algorithm"),
							AlgorithmControl: jsii.String("algorithmControl"),
							PeakCalculation: jsii.String("peakCalculation"),
							PeakLimiterThreshold: jsii.Number(123),
							TargetLkfs: jsii.Number(123),
						},
						Channels: jsii.Number(123),
						GainDb: jsii.Number(123),
						RemixSettings: &RemixSettingsProperty{
							ChannelMappings: []interface{}{
								&AudioChannelMappingProperty{
									InputChannelLevels: []interface{}{
										&InputChannelLevelProperty{
											Gain: jsii.Number(123),
											InputChannel: jsii.Number(123),
										},
									},
									OutputChannel: jsii.Number(123),
								},
							},
							ChannelsIn: jsii.Number(123),
							ChannelsOut: jsii.Number(123),
						},
					},
				},
			},
		},
		AudioTrackSelection: &AudioTrackSelectionProperty{
			DolbyEDecode: &AudioDolbyEDecodeProperty{
				ProgramSelection: jsii.String("programSelection"),
			},
			Tracks: []interface{}{
				&AudioTrackProperty{
					PremixSettings: &AudioPreMixerSettingsProperty{
						AudioNormalizationSettings: &AudioNormalizationSettingsProperty{
							Algorithm: jsii.String("algorithm"),
							AlgorithmControl: jsii.String("algorithmControl"),
							PeakCalculation: jsii.String("peakCalculation"),
							PeakLimiterThreshold: jsii.Number(123),
							TargetLkfs: jsii.Number(123),
						},
						Channels: jsii.Number(123),
						GainDb: jsii.Number(123),
						RemixSettings: &RemixSettingsProperty{
							ChannelMappings: []interface{}{
								&AudioChannelMappingProperty{
									InputChannelLevels: []interface{}{
										&InputChannelLevelProperty{
											Gain: jsii.Number(123),
											InputChannel: jsii.Number(123),
										},
									},
									OutputChannel: jsii.Number(123),
								},
							},
							ChannelsIn: jsii.Number(123),
							ChannelsOut: jsii.Number(123),
						},
					},
					Track: jsii.Number(123),
				},
			},
		},
	},
}

Properties ​

nameoptionalstringnameoptionalstrnameoptionalStringNameoptionalstringNameoptional*string#
A name for this AudioSelector.
selectorSettingsoptionalIResolvable | CfnChannel.AudioSelectorSettingsPropertyselector_settingsoptionaltyping.Union[IResolvable, AudioSelectorSettingsProperty]selectorSettingsoptionalIResolvableSelectorSettingsoptionalIResolvableSelectorSettingsoptionalinterface{}#
Information about the specific audio to extract from the input.