Class: AWSCDK::Lex::CfnBot::AudioSpecificationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lex/cfn_bot.rb

Overview

Specifies the audio input specifications.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(end_timeout_ms:, max_length_ms:) ⇒ AudioSpecificationProperty

Returns a new instance of AudioSpecificationProperty.

Parameters:

  • end_timeout_ms (Numeric)

    Time for which a bot waits after the customer stops speaking to assume the utterance is finished.

  • max_length_ms (Numeric)

    Time for how long Amazon Lex waits before speech input is truncated and the speech is returned to application.



956
957
958
959
960
961
# File 'lex/cfn_bot.rb', line 956

def initialize(end_timeout_ms:, max_length_ms:)
  @end_timeout_ms = end_timeout_ms
  Jsii::Type.check_type(@end_timeout_ms, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "endTimeoutMs")
  @max_length_ms = max_length_ms
  Jsii::Type.check_type(@max_length_ms, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxLengthMs")
end

Instance Attribute Details

#end_timeout_msNumeric (readonly)

Time for which a bot waits after the customer stops speaking to assume the utterance is finished.



967
968
969
# File 'lex/cfn_bot.rb', line 967

def end_timeout_ms
  @end_timeout_ms
end

#max_length_msNumeric (readonly)

Time for how long Amazon Lex waits before speech input is truncated and the speech is returned to application.



972
973
974
# File 'lex/cfn_bot.rb', line 972

def max_length_ms
  @max_length_ms
end

Class Method Details

.jsii_propertiesObject



974
975
976
977
978
979
# File 'lex/cfn_bot.rb', line 974

def self.jsii_properties
  {
    :end_timeout_ms => "endTimeoutMs",
    :max_length_ms => "maxLengthMs",
  }
end

Instance Method Details

#to_jsiiObject



981
982
983
984
985
986
987
988
# File 'lex/cfn_bot.rb', line 981

def to_jsii
  result = {}
  result.merge!({
    "endTimeoutMs" => @end_timeout_ms,
    "maxLengthMs" => @max_length_ms,
  })
  result.compact
end