Class: AWSCDK::Bedrock::CfnDataAutomationProject::TranscriptConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnDataAutomationProject::TranscriptConfigurationProperty
- Defined in:
- bedrock/cfn_data_automation_project.rb
Overview
Configuration for transcript options.
This option allows you to enable speaker labeling and channel labeling.
Instance Attribute Summary collapse
-
#channel_labeling ⇒ AWSCDK::IResolvable, ...
readonly
Enables channel labeling.
-
#speaker_labeling ⇒ AWSCDK::IResolvable, ...
readonly
Enables speaker labeling.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(channel_labeling: nil, speaker_labeling: nil) ⇒ TranscriptConfigurationProperty
constructor
A new instance of TranscriptConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(channel_labeling: nil, speaker_labeling: nil) ⇒ TranscriptConfigurationProperty
Returns a new instance of TranscriptConfigurationProperty.
2117 2118 2119 2120 2121 2122 |
# File 'bedrock/cfn_data_automation_project.rb', line 2117 def initialize(channel_labeling: nil, speaker_labeling: nil) @channel_labeling = channel_labeling.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnDataAutomationProject::ChannelLabelingConfigurationProperty.new(**channel_labeling.transform_keys(&:to_sym)) : channel_labeling Jsii::Type.check_type(@channel_labeling, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkRhdGFBdXRvbWF0aW9uUHJvamVjdC5DaGFubmVsTGFiZWxpbmdDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "channelLabeling") unless @channel_labeling.nil? @speaker_labeling = speaker_labeling.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnDataAutomationProject::SpeakerLabelingConfigurationProperty.new(**speaker_labeling.transform_keys(&:to_sym)) : speaker_labeling Jsii::Type.check_type(@speaker_labeling, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkRhdGFBdXRvbWF0aW9uUHJvamVjdC5TcGVha2VyTGFiZWxpbmdDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "speakerLabeling") unless @speaker_labeling.nil? end |
Instance Attribute Details
#channel_labeling ⇒ AWSCDK::IResolvable, ... (readonly)
Enables channel labeling.
Each audio channel will be labeled with a number, and the transcript will indicate which channel is being used.
2130 2131 2132 |
# File 'bedrock/cfn_data_automation_project.rb', line 2130 def channel_labeling @channel_labeling end |
#speaker_labeling ⇒ AWSCDK::IResolvable, ... (readonly)
Enables speaker labeling.
Each speaker within a transcript will recieve a number, and the transcript will note which speaker is talking.
2137 2138 2139 |
# File 'bedrock/cfn_data_automation_project.rb', line 2137 def speaker_labeling @speaker_labeling end |
Class Method Details
.jsii_properties ⇒ Object
2139 2140 2141 2142 2143 2144 |
# File 'bedrock/cfn_data_automation_project.rb', line 2139 def self.jsii_properties { :channel_labeling => "channelLabeling", :speaker_labeling => "speakerLabeling", } end |
Instance Method Details
#to_jsii ⇒ Object
2146 2147 2148 2149 2150 2151 2152 2153 |
# File 'bedrock/cfn_data_automation_project.rb', line 2146 def to_jsii result = {} result.merge!({ "channelLabeling" => @channel_labeling, "speakerLabeling" => @speaker_labeling, }) result.compact end |