# AudioExtractionCategoryProperty

Settings for generating data from audio.

- Source: Generated at build time
- Type last changed: v2.219.0 · 1 Oct 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const audioExtractionCategoryProperty: bedrock.CfnDataAutomationProject.AudioExtractionCategoryProperty = {
  state: 'state',

  // the properties below are optional
  typeConfiguration: {
    transcript: {
      channelLabeling: {
        state: 'state',
      },
      speakerLabeling: {
        state: 'state',
      },
    },
  },
  types: ['types'],
};
```

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_bedrock as bedrock

audio_extraction_category_property = bedrock.CfnDataAutomationProject.AudioExtractionCategoryProperty(
    state="state",

    # the properties below are optional
    type_configuration=bedrock.CfnDataAutomationProject.AudioExtractionCategoryTypeConfigurationProperty(
        transcript=bedrock.CfnDataAutomationProject.TranscriptConfigurationProperty(
            channel_labeling=bedrock.CfnDataAutomationProject.ChannelLabelingConfigurationProperty(
                state="state"
            ),
            speaker_labeling=bedrock.CfnDataAutomationProject.SpeakerLabelingConfigurationProperty(
                state="state"
            )
        )
    ),
    types=["types"]
)
```

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

AudioExtractionCategoryProperty audioExtractionCategoryProperty = AudioExtractionCategoryProperty.builder()
        .state("state")

        // the properties below are optional
        .typeConfiguration(AudioExtractionCategoryTypeConfigurationProperty.builder()
                .transcript(TranscriptConfigurationProperty.builder()
                        .channelLabeling(ChannelLabelingConfigurationProperty.builder()
                                .state("state")
                                .build())
                        .speakerLabeling(SpeakerLabelingConfigurationProperty.builder()
                                .state("state")
                                .build())
                        .build())
                .build())
        .types(List.of("types"))
        .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.Bedrock;

var audioExtractionCategoryProperty = new AudioExtractionCategoryProperty {
    State = "state",

    // the properties below are optional
    TypeConfiguration = new AudioExtractionCategoryTypeConfigurationProperty {
        Transcript = new TranscriptConfigurationProperty {
            ChannelLabeling = new ChannelLabelingConfigurationProperty {
                State = "state"
            },
            SpeakerLabeling = new SpeakerLabelingConfigurationProperty {
                State = "state"
            }
        }
    },
    Types = new [] { "types" }
};
```

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"

audioExtractionCategoryProperty := &AudioExtractionCategoryProperty{
	State: jsii.String("state"),

	// the properties below are optional
	TypeConfiguration: &AudioExtractionCategoryTypeConfigurationProperty{
		Transcript: &TranscriptConfigurationProperty{
			ChannelLabeling: &ChannelLabelingConfigurationProperty{
				State: jsii.String("state"),
			},
			SpeakerLabeling: &SpeakerLabelingConfigurationProperty{
				State: jsii.String("state"),
			},
		},
	},
	Types: []*string{
		jsii.String("types"),
	},
}
```

## Properties

- `state`: string (required) — Whether generating categorical data from audio is enabled.

- `typeConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataAutomationProject.AudioExtractionCategoryTypeConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrock.CfnDataAutomationProject.AudioExtractionCategoryTypeConfigurationProperty.html) — This element contains information about extractions from different types.

  Used to enable speaker and channel labeling for transcripts.

- `types`: string[] — The types of data to generate.
