Skip to content
v2.277.0

AudioSpecificationProperty Struct ​

Specifies the audio input specifications.

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 audioSpecificationProperty: lex.CfnBot.AudioSpecificationProperty = {
  endTimeoutMs: 123,
  maxLengthMs: 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_specification_property = lex.CfnBot.AudioSpecificationProperty(
    end_timeout_ms=123,
    max_length_ms=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.*;

AudioSpecificationProperty audioSpecificationProperty = AudioSpecificationProperty.builder()
        .endTimeoutMs(123)
        .maxLengthMs(123)
        .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 audioSpecificationProperty = new AudioSpecificationProperty {
    EndTimeoutMs = 123,
    MaxLengthMs = 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"

audioSpecificationProperty := &AudioSpecificationProperty{
	EndTimeoutMs: jsii.Number(123),
	MaxLengthMs: jsii.Number(123),
}

Properties ​

endTimeoutMsnumberend_timeout_msint | floatendTimeoutMsNumberEndTimeoutMsdoubleEndTimeoutMs*float64required#
Time for which a bot waits after the customer stops speaking to assume the utterance is finished.
maxLengthMsnumbermax_length_msint | floatmaxLengthMsNumberMaxLengthMsdoubleMaxLengthMs*float64required#
Time for how long Amazon Lex waits before speech input is truncated and the speech is returned to application.