Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

VADConfig.md

44 lines615 Bytes

1---
2id: VADConfig
3title: VADConfig
4---
5​
6Defined in: packages/ai/src/realtime/types.ts:12
7​
8Voice activity detection configuration
9​
10## Properties
11​
12### prefixPaddingMs?
13​
14```ts
15optional prefixPaddingMs?: number;
16```
17​
18Defined in: packages/ai/src/realtime/types.ts:16
19​
20Audio to include before speech detection (ms)
21​
22***
23​
24### silenceDurationMs?
25​
26```ts
27optional silenceDurationMs?: number;
28```
29​
30Defined in: packages/ai/src/realtime/types.ts:18
31​
32Silence duration to end turn (ms)
33​
34***
35​
36### threshold?
37​
38```ts
39optional threshold?: number;
40```
41​
42Defined in: packages/ai/src/realtime/types.ts:14
43​
44Sensitivity threshold (0.0-1.0)