AudioAndDTMFInputSpecificationProperty Struct
Specifies the audio and DTMF input specification.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lex as lex } from 'aws-cdk-lib';
const audioAndDTMFInputSpecificationProperty: lex.CfnBot.AudioAndDTMFInputSpecificationProperty = {
startTimeoutMs: 123,
// the properties below are optional
audioSpecification: {
endTimeoutMs: 123,
maxLengthMs: 123,
},
dtmfSpecification: {
deletionCharacter: 'deletionCharacter',
endCharacter: 'endCharacter',
endTimeoutMs: 123,
maxLength: 123,
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lex as lex
audio_and_dtmf_input_specification_property = lex.CfnBot.AudioAndDTMFInputSpecificationProperty(
start_timeout_ms=123,
# the properties below are optional
audio_specification=lex.CfnBot.AudioSpecificationProperty(
end_timeout_ms=123,
max_length_ms=123
),
dtmf_specification=lex.CfnBot.DTMFSpecificationProperty(
deletion_character="deletionCharacter",
end_character="endCharacter",
end_timeout_ms=123,
max_length=123
)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lex.*;
AudioAndDTMFInputSpecificationProperty audioAndDTMFInputSpecificationProperty = AudioAndDTMFInputSpecificationProperty.builder()
.startTimeoutMs(123)
// the properties below are optional
.audioSpecification(AudioSpecificationProperty.builder()
.endTimeoutMs(123)
.maxLengthMs(123)
.build())
.dtmfSpecification(DTMFSpecificationProperty.builder()
.deletionCharacter("deletionCharacter")
.endCharacter("endCharacter")
.endTimeoutMs(123)
.maxLength(123)
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lex;
var audioAndDTMFInputSpecificationProperty = new AudioAndDTMFInputSpecificationProperty {
StartTimeoutMs = 123,
// the properties below are optional
AudioSpecification = new AudioSpecificationProperty {
EndTimeoutMs = 123,
MaxLengthMs = 123
},
DtmfSpecification = new DTMFSpecificationProperty {
DeletionCharacter = "deletionCharacter",
EndCharacter = "endCharacter",
EndTimeoutMs = 123,
MaxLength = 123
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
audioAndDTMFInputSpecificationProperty := &AudioAndDTMFInputSpecificationProperty{
StartTimeoutMs: jsii.Number(123),
// the properties below are optional
AudioSpecification: &AudioSpecificationProperty{
EndTimeoutMs: jsii.Number(123),
MaxLengthMs: jsii.Number(123),
},
DtmfSpecification: &DTMFSpecificationProperty{
DeletionCharacter: jsii.String("deletionCharacter"),
EndCharacter: jsii.String("endCharacter"),
EndTimeoutMs: jsii.Number(123),
MaxLength: jsii.Number(123),
},
}
Properties
audioSpecificationoptionalIResolvable | CfnBot.AudioSpecificationPropertyaudio_specificationoptionaltyping.Union[IResolvable, AudioSpecificationProperty]audioSpecificationoptionalIResolvableAudioSpecificationoptionalIResolvableAudioSpecificationoptionalinterface{}#Specifies the settings on audio input.
dtmfSpecificationoptionalIResolvable | CfnBot.DTMFSpecificationPropertydtmf_specificationoptionaltyping.Union[IResolvable, DTMFSpecificationProperty]dtmfSpecificationoptionalIResolvableDtmfSpecificationoptionalIResolvableDtmfSpecificationoptionalinterface{}#Specifies the settings on DTMF input.
startTimeoutMsnumberstart_timeout_msint | floatstartTimeoutMsNumberStartTimeoutMsdoubleStartTimeoutMs*float64required#Time for which a bot waits before assuming that the customer isn't going to speak or press a key.
This timeout is shared between Audio and DTMF inputs.