/** * Payload for sending audio chunks from client to server. */ export interface InputAudioChunkPayload { /** The message type identifier. */ messageType: "input_audio_chunk"; /** Base64-encoded audio data. */ audioBase64: string; /** Whether to commit the transcription after this chunk. */ commit: boolean; /** Sample rate of the audio in Hz. */ sampleRate: number; /** Send text context to the model. Can only be sent alongside the first audio chunk. If sent in a subsequent chunk, an error will be returned. */ previousText?: string; }