mistralM

Docs

sideBar

Audio formats

Accepted input formats and available output formats across transcription, speech generation, audio in chat, and voice agents.

This page lists the audio formats each audio API accepts and returns. The feature pages link here instead of repeating the lists.

Transcription input

Each transcription mode takes audio in a different form:

Mode

How you send audio

Formats

Details

File transcriptionOne file per request: file (upload), file_url (a URL of up to 2,083 characters), or file_id (a file uploaded to /v1/files with purpose=audio)File transcription
Realtime transcriptionRaw audio in base64 chunks, described by audio_format in session.updatepcm_s16le (16-bit signed little-endian PCM, mono). Default sample rate: 16,000 Hz.Realtime transcription

Speech output

Speech generation returns audio in the format you set with response_format:

Format

Use it for

mp3 (default)Playback in browsers and apps, when file size matters
opusStreaming and playback over limited bandwidth
wavEditing, or when you need uncompressed audio in a standard file
flacLossless archiving at a smaller size than WAV
pcmRaw pipelines and telephony bridges that take raw samples, with no file header

Generated speech is mono at 24 kHz. To set the format in a request, see Response formats.

Reference audio

Two features take a short recording of a voice as a reference:

Use

Format

Number and length

Details

Speaker references for diarizationThe base64 encoding of an audio file, keyed by a speaker nameUp to 8 clips, 3 to 15 seconds eachName speakers with reference clips
Voice cloningAn MP3 or WAV file, base64-encoded. A URL isn't accepted.A few seconds to a few minutesPrepare a reference clip

Audio in chat completions

Audio in chat completions takes the audio inline, in the message:

How you send audio

Formats

Details

An input_audio content part with the base64 encoding of the fileAudio in chat completions

Voice agents SDK

The Voice Agents SDK uses one audio format of its own, for input and output:

Integration

Format

Details

Custom audio interface, or audio sent manually16-bit signed PCM, mono, 48 kHzCustom audio
BrowserThe page's media tracks: you don't handle any formatVoice agents in the browser

Going further

Limits
illustrationBolt

Limits

Size, duration, and value limits for audio requests and sessions, and what happens when you go over them.

File transcription
illustrationHeadphones

File transcription

Transcribe recorded audio: send a file, a URL, or an uploaded file, pin the language, get segment timestamps, and stream the response.

Speech generation
illustrationSound

Speech generation

Turn text into audio with control over voice, format, and expressiveness.