Experimental
@aws-cdk/aws-medialive-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
SmartSubtitleSourceOptions Struct
Options for a smart subtitle caption source (AI-generated subtitles via Elemental Inference).
| Stability | Experimental |
|---|---|
| Source | lib/caption-selector.ts |
Example
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
# 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
// 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();
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"
};
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
captionSynchronizationModeoptionalCaptionSynchronizationModecaption_synchronization_modeoptionalCaptionSynchronizationModecaptionSynchronizationModeoptionalCaptionSynchronizationModeCaptionSynchronizationModeoptionalCaptionSynchronizationModeCaptionSynchronizationModeoptionalCaptionSynchronizationMode #Controls whether MediaLive delays video to synchronize captions with audio and video output.
Default: service default
inferenceFeedOutputoptionalstringinference_feed_outputoptionalstrinferenceFeedOutputoptionalStringInferenceFeedOutputoptionalstringInferenceFeedOutputoptional*string #The name of the Elemental Inference feed output that provides the subtitles.
Default: service default