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

RealtimeAudioPart.md

54 lines689 Bytes

1---
2id: RealtimeAudioPart
3title: RealtimeAudioPart
4---
5​
6Defined in: packages/ai/src/realtime/types.ts:107
7​
8Audio content part in a realtime message
9​
10## Properties
11​
12### audioData?
13​
14```ts
15optional audioData?: ArrayBuffer;
16```
17​
18Defined in: packages/ai/src/realtime/types.ts:112
19​
20Raw audio data (optional, if stored)
21​
22***
23​
24### durationMs?
25​
26```ts
27optional durationMs?: number;
28```
29​
30Defined in: packages/ai/src/realtime/types.ts:114
31​
32Duration of the audio in milliseconds
33​
34***
35​
36### transcript
37​
38```ts
39transcript: string;
40```
41​
42Defined in: packages/ai/src/realtime/types.ts:110
43​
44Transcription of the audio
45​
46***
47​
48### type
49​
50```ts
51type: "audio";
52```
53​
54Defined in: packages/ai/src/realtime/types.ts:108