# AudioLanguageSelectionProperty

Information about the audio language to extract.

The parent of this entity is AudioSelectorSettings.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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 audioLanguageSelectionProperty: medialive.CfnChannel.AudioLanguageSelectionProperty = {
  languageCode: 'languageCode',
  languageSelectionPolicy: 'languageSelectionPolicy',
};
```

Python:

```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_language_selection_property = medialive.CfnChannel.AudioLanguageSelectionProperty(
    language_code="languageCode",
    language_selection_policy="languageSelectionPolicy"
)
```

Java:

```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.*;

AudioLanguageSelectionProperty audioLanguageSelectionProperty = AudioLanguageSelectionProperty.builder()
        .languageCode("languageCode")
        .languageSelectionPolicy("languageSelectionPolicy")
        .build();
```

C# / .NET:

```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 audioLanguageSelectionProperty = new AudioLanguageSelectionProperty {
    LanguageCode = "languageCode",
    LanguageSelectionPolicy = "languageSelectionPolicy"
};
```

Golang:

```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"

audioLanguageSelectionProperty := &AudioLanguageSelectionProperty{
	LanguageCode: jsii.String("languageCode"),
	LanguageSelectionPolicy: jsii.String("languageSelectionPolicy"),
}
```

## Properties

- `languageCode`: string — Selects a specific three-letter language code from within an audio source.

- `languageSelectionPolicy`: string — 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 is encoded until the language returns. If set to "loose," then on a PMT update the demux chooses another audio stream in the program with the same stream type if it can't find one with the same language.
