Interface TextChatUserInputAudio

The definition of a user audio content.

interface TextChatUserInputAudio {
    data?: string;
    format?: "wav" | "mp3";
}

Properties

Properties

data?: string

You can either set this string to a base64 encoded audio, or use data_asset field to refer to an uploaded audio file.

Example

"{base64_audio}"
format?: "wav" | "mp3"

Either wav or mp3.