Class: AWSCDK::Bedrock::CfnDataAutomationProject::AudioLanguageConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnDataAutomationProject::AudioLanguageConfigurationProperty
- Defined in:
- bedrock/cfn_data_automation_project.rb
Overview
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.
Instance Attribute Summary collapse
-
#generative_output_language ⇒ String?
readonly
The output language of your processing results.
-
#identify_multiple_languages ⇒ Boolean, ...
readonly
The toggle determining if you want to detect multiple languages from your audio.
-
#input_languages ⇒ Array<String>?
readonly
The input language of your audio.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(generative_output_language: nil, identify_multiple_languages: nil, input_languages: nil) ⇒ AudioLanguageConfigurationProperty
constructor
A new instance of AudioLanguageConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(generative_output_language: nil, identify_multiple_languages: nil, input_languages: nil) ⇒ AudioLanguageConfigurationProperty
Returns a new instance of AudioLanguageConfigurationProperty.
741 742 743 744 745 746 747 748 |
# File 'bedrock/cfn_data_automation_project.rb', line 741 def initialize(generative_output_language: nil, identify_multiple_languages: nil, input_languages: nil) @generative_output_language = generative_output_language Jsii::Type.check_type(@generative_output_language, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "generativeOutputLanguage") unless @generative_output_language.nil? @identify_multiple_languages = identify_multiple_languages Jsii::Type.check_type(@identify_multiple_languages, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "identifyMultipleLanguages") unless @identify_multiple_languages.nil? @input_languages = input_languages Jsii::Type.check_type(@input_languages, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "inputLanguages") unless @input_languages.nil? end |
Instance Attribute Details
#generative_output_language ⇒ String? (readonly)
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.
756 757 758 |
# File 'bedrock/cfn_data_automation_project.rb', line 756 def generative_output_language @generative_output_language end |
#identify_multiple_languages ⇒ Boolean, ... (readonly)
The toggle determining if you want to detect multiple languages from your audio.
761 762 763 |
# File 'bedrock/cfn_data_automation_project.rb', line 761 def identify_multiple_languages @identify_multiple_languages end |
#input_languages ⇒ Array<String>? (readonly)
The input language of your audio.
This can be set to any of the currently supported languages via the language codes.
768 769 770 |
# File 'bedrock/cfn_data_automation_project.rb', line 768 def input_languages @input_languages end |
Class Method Details
.jsii_properties ⇒ Object
770 771 772 773 774 775 776 |
# File 'bedrock/cfn_data_automation_project.rb', line 770 def self.jsii_properties { :generative_output_language => "generativeOutputLanguage", :identify_multiple_languages => "identifyMultipleLanguages", :input_languages => "inputLanguages", } end |
Instance Method Details
#to_jsii ⇒ Object
778 779 780 781 782 783 784 785 786 |
# File 'bedrock/cfn_data_automation_project.rb', line 778 def to_jsii result = {} result.merge!({ "generativeOutputLanguage" => @generative_output_language, "identifyMultipleLanguages" => @identify_multiple_languages, "inputLanguages" => @input_languages, }) result.compact end |