Class: AWSCDK::Bedrock::CfnKnowledgeBase::AudioSegmentationConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock/cfn_knowledge_base.rb

Overview

Configuration for segmenting audio content during multimodal knowledge base ingestion.

Determines how audio files are divided into chunks for processing.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fixed_length_duration:) ⇒ AudioSegmentationConfigurationProperty

Returns a new instance of AudioSegmentationConfigurationProperty.

Parameters:

  • fixed_length_duration (Numeric)

    The duration in seconds for each audio segment.



699
700
701
702
# File 'bedrock/cfn_knowledge_base.rb', line 699

def initialize(fixed_length_duration:)
  @fixed_length_duration = fixed_length_duration
  Jsii::Type.check_type(@fixed_length_duration, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "fixedLengthDuration")
end

Instance Attribute Details

#fixed_length_durationNumeric (readonly)

The duration in seconds for each audio segment.

Audio files will be divided into chunks of this length for processing.



710
711
712
# File 'bedrock/cfn_knowledge_base.rb', line 710

def fixed_length_duration
  @fixed_length_duration
end

Class Method Details

.jsii_propertiesObject



712
713
714
715
716
# File 'bedrock/cfn_knowledge_base.rb', line 712

def self.jsii_properties
  {
    :fixed_length_duration => "fixedLengthDuration",
  }
end

Instance Method Details

#to_jsiiObject



718
719
720
721
722
723
724
# File 'bedrock/cfn_knowledge_base.rb', line 718

def to_jsii
  result = {}
  result.merge!({
    "fixedLengthDuration" => @fixed_length_duration,
  })
  result.compact
end