Class: AWSCDK::Bedrock::CfnDataAutomationProject::TranscriptConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(channel_labeling: nil, speaker_labeling: nil) ⇒ TranscriptConfigurationProperty

Returns a new instance of TranscriptConfigurationProperty.

Parameters:



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_labelingAWSCDK::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_labelingAWSCDK::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_propertiesObject



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_jsiiObject



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