Class: AWSCDK::Lex::CfnBot::AudioSpecificationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::AudioSpecificationProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Specifies the audio input specifications.
Instance Attribute Summary collapse
-
#end_timeout_ms ⇒ Numeric
readonly
Time for which a bot waits after the customer stops speaking to assume the utterance is finished.
-
#max_length_ms ⇒ Numeric
readonly
Time for how long Amazon Lex waits before speech input is truncated and the speech is returned to application.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(end_timeout_ms:, max_length_ms:) ⇒ AudioSpecificationProperty
constructor
A new instance of AudioSpecificationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(end_timeout_ms:, max_length_ms:) ⇒ AudioSpecificationProperty
Returns a new instance of AudioSpecificationProperty.
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_ms ⇒ Numeric (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_ms ⇒ Numeric (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_properties ⇒ Object
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_jsii ⇒ Object
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 |