> **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.
# Scte27CaptionSourceOptions

Options for an SCTE-27 caption source.

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

- 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#L147)

## 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 ocrLanguage: medialive_alpha.OcrLanguage;
const scte27CaptionSourceOptions: medialive_alpha.Scte27CaptionSourceOptions = {
  ocrLanguage: ocrLanguage,
  pid: 123,
};
```

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

# ocr_language: medialive_alpha.OcrLanguage

scte27_caption_source_options = medialive_alpha.Scte27CaptionSourceOptions(
    ocr_language=ocr_language,
    pid=123
)
```

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

OcrLanguage ocrLanguage;

Scte27CaptionSourceOptions scte27CaptionSourceOptions = Scte27CaptionSourceOptions.builder()
        .ocrLanguage(ocrLanguage)
        .pid(123)
        .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;

OcrLanguage ocrLanguage;

var scte27CaptionSourceOptions = new Scte27CaptionSourceOptions {
    OcrLanguage = ocrLanguage,
    Pid = 123
};
```

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 ocrLanguage OcrLanguage

scte27CaptionSourceOptions := &Scte27CaptionSourceOptions{
	OcrLanguage: ocrLanguage,
	Pid: jsii.Number(123),
}
```

## Properties

- `ocrLanguage`: [OcrLanguage](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.OcrLanguage.html) — The OCR language to use when converting this image-based source to text.

  **Default:** MediaLive service default

- `pid`: number — The PID to extract captions from.

  **Default:** MediaLive service default

  See the MediaLive docs for how PID and `languageCode`
  interact.
