> **Experimental**
>
> `@aws-cdk/aws-medialive-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# AudioLanguageSelectionPolicy

Policy for how MediaLive identifies the audio stream when selecting by language, on a transport-stream PMT update.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/audio-selector.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-medialive-alpha/lib/audio-selector.ts#L10)

## Example

```ts
declare const stack: Stack;
declare const input: medialive.IInput;
declare const bucket: s3.IBucket;
declare const video: medialive.EncodeConfiguration;

new medialive.Channel(stack, 'Channel', {
  inputs: [{
    input,
    audioSelectors: [
      medialive.AudioSelector.byLanguage('eng', 'eng', medialive.AudioLanguageSelectionPolicy.STRICT),
    ],
    captionSelectors: [
      medialive.CaptionSelector.embedded('embedded'),
    ],
    videoSelector: {
      colorSpace: medialive.VideoColorSpace.HDR10,
      colorSpaceUsage: medialive.VideoColorSpaceUsage.FORCE,
      selectBy: medialive.VideoSelection.byProgramId(1),
    },
  }],
  outputGroups: [
    medialive.OutputGroupConfiguration.hls({
      name: 'hls',
      destinations: [medialive.OutputDestination.toBucket(bucket, 'live/stream')],
      outputs: [{ encodes: [video], outputName: 'hls_out' }],
    }),
  ],
});
```

## Properties

- `LOOSE`: [AudioLanguageSelectionPolicy](/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.AudioLanguageSelectionPolicy.html) (static) — On a PMT update, fall back to another audio stream of the same type in the program if a stream with the same language can't be found.

- `STRICT`: [AudioLanguageSelectionPolicy](/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.AudioLanguageSelectionPolicy.html) (static) — Strictly identify audio by its language descriptor.

  If the matching language is no
  longer present after a PMT update, mute is encoded until the language returns.

- `value`: string — The underlying string value passed to CloudFormation.

## Methods

- `of(value: string): AudioLanguageSelectionPolicy // chainable` (static) — A value not yet modelled by AWS CDK.
