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

Options for a smart subtitle caption source (AI-generated subtitles via Elemental Inference).

Used as argument in: [CaptionSelector.smartSubtitle](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.CaptionSelector.html#smartsubtitle)

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`lib/caption-selector.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-medialive-alpha/lib/caption-selector.ts#L218)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as medialive_alpha from '@aws-cdk/aws-medialive-alpha';

declare const captionSynchronizationMode: medialive_alpha.CaptionSynchronizationMode;
const smartSubtitleSourceOptions: medialive_alpha.SmartSubtitleSourceOptions = {
  captionSynchronizationMode: captionSynchronizationMode,
  inferenceFeedOutput: 'inferenceFeedOutput',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_medialive_alpha as medialive_alpha

# caption_synchronization_mode: medialive_alpha.CaptionSynchronizationMode

smart_subtitle_source_options = medialive_alpha.SmartSubtitleSourceOptions(
    caption_synchronization_mode=caption_synchronization_mode,
    inference_feed_output="inferenceFeedOutput"
)
```

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

CaptionSynchronizationMode captionSynchronizationMode;

SmartSubtitleSourceOptions smartSubtitleSourceOptions = SmartSubtitleSourceOptions.builder()
        .captionSynchronizationMode(captionSynchronizationMode)
        .inferenceFeedOutput("inferenceFeedOutput")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaLive.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaLive.Alpha;

CaptionSynchronizationMode captionSynchronizationMode;

var smartSubtitleSourceOptions = new SmartSubtitleSourceOptions {
    CaptionSynchronizationMode = captionSynchronizationMode,
    InferenceFeedOutput = "inferenceFeedOutput"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awsmedialivealpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import medialive_alpha "github.com/aws/aws-cdk-go/awsmedialivealpha"

var captionSynchronizationMode CaptionSynchronizationMode

smartSubtitleSourceOptions := &SmartSubtitleSourceOptions{
	CaptionSynchronizationMode: captionSynchronizationMode,
	InferenceFeedOutput: jsii.String("inferenceFeedOutput"),
}
```

## Properties

- `captionSynchronizationMode`: [CaptionSynchronizationMode](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.CaptionSynchronizationMode.html) — Controls whether MediaLive delays video to synchronize captions with audio and video output.

  **Default:** service default

- `inferenceFeedOutput`: string — The name of the Elemental Inference feed output that provides the subtitles.

  **Default:** service default
