API Reference
AudioPart
Defined in: types/content-part.ts:66
An audio content part: base64-encoded audio the model transcribes / reasons
over. Only wav and mp3 are accepted by the chat-completions audio input.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
input_audio | { data: string; format: "wav" | "mp3"; } | The inline audio payload and its container format. | types/content-part.ts:70 |
input_audio.data | string | Base64-encoded audio bytes (no data: prefix). | types/content-part.ts:72 |
input_audio.format | "wav" | "mp3" | Container format of data. | types/content-part.ts:74 |
type | "input_audio" | Discriminant. | types/content-part.ts:68 |