AudioLanguageConfigurationProperty Struct
This allows you to set the input and output language of your audio.
The input language can be set to any of the languages supported by Bedrock Data Automation. The output can either be set to english or whatever the dominant language is of the audio, determined by the language spoken for the most seconds.
Example
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 audioLanguageConfigurationProperty: bedrock.CfnDataAutomationProject.AudioLanguageConfigurationProperty = {
generativeOutputLanguage: 'generativeOutputLanguage',
identifyMultipleLanguages: false,
inputLanguages: ['inputLanguages'],
};
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_language_configuration_property = bedrock.CfnDataAutomationProject.AudioLanguageConfigurationProperty(
generative_output_language="generativeOutputLanguage",
identify_multiple_languages=False,
input_languages=["inputLanguages"]
)
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.*;
AudioLanguageConfigurationProperty audioLanguageConfigurationProperty = AudioLanguageConfigurationProperty.builder()
.generativeOutputLanguage("generativeOutputLanguage")
.identifyMultipleLanguages(false)
.inputLanguages(List.of("inputLanguages"))
.build();
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 audioLanguageConfigurationProperty = new AudioLanguageConfigurationProperty {
GenerativeOutputLanguage = "generativeOutputLanguage",
IdentifyMultipleLanguages = false,
InputLanguages = new [] { "inputLanguages" }
};
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"
audioLanguageConfigurationProperty := &AudioLanguageConfigurationProperty{
GenerativeOutputLanguage: jsii.String("generativeOutputLanguage"),
IdentifyMultipleLanguages: jsii.Boolean(false),
InputLanguages: []*string{
jsii.String("inputLanguages"),
},
}
Properties
generativeOutputLanguageoptionalstringgenerative_output_languageoptionalstrgenerativeOutputLanguageoptionalStringGenerativeOutputLanguageoptionalstringGenerativeOutputLanguageoptional*string#The output language of your processing results.
This can either be set to EN (English) or DEFAULT which will output the results in the dominant language of the audio. The dominant language is determined as the language in the audio, spoken the longest in the input audio.
identifyMultipleLanguagesoptionalboolean | IResolvableidentify_multiple_languagesoptionaltyping.Union[bool, IResolvable]identifyMultipleLanguagesoptionalBooleanIdentifyMultipleLanguagesoptionalboolIdentifyMultipleLanguagesoptionalinterface{}#The toggle determining if you want to detect multiple languages from your audio.
inputLanguagesoptionalstring[]input_languagesoptionaltyping.List[str]inputLanguagesoptionalList<String>InputLanguagesoptionalstring[]InputLanguagesoptional*[]*string#The input language of your audio.
This can be set to any of the currently supported languages via the language codes.