# AudioSpecificationProperty

Specifies the audio input specifications.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

```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

- `endTimeoutMs`: number (required) — Time for which a bot waits after the customer stops speaking to assume the utterance is finished.

- `maxLengthMs`: number (required) — Time for how long Amazon Lex waits before speech input is truncated and the speech is returned to application.
