Using Mistral Voxtral for Speech-to-Text
This guide covers how to use Mistral's Voxtral model for Speech-to-Text with Open WebUI. Voxtral is Mistral's speech-to-text model that provides accurate transcription.
See the companion guide: Using Mistral for Text-to-Speech
Requirements
- A Mistral API key
- Open WebUI installed and running
Quick Setup (UI)
- Click your profile icon (bottom-left corner)
- Select Admin Panel
- Click Settings → Audio tab
- Configure the following:
| Setting | Value |
|---|---|
| Speech-to-Text Engine | MistralAI |
| API Key | Your Mistral API key |
| STT Model | voxtral-mini-2602 (empty falls back to voxtral-mini-latest, an alias Mistral may no longer serve, so set it) |
- Click Save
Available Models
| Model | Description |
|---|---|
voxtral-mini-2602 | Voxtral Mini Transcribe 2 — current transcription model (recommended) |
Mistral no longer publishes -latest alias names such as voxtral-mini-latest. Use a dated ID from the Mistral models overview.
Environment Variables Setup
If you prefer to configure via environment variables:
services:
open-webui:
image: ghcr.io/open-webui/open-webui:main
environment:
- AUDIO_STT_ENGINE=mistral
- AUDIO_STT_MISTRAL_API_KEY=your-mistral-api-key
- AUDIO_STT_MODEL=voxtral-mini-2602
# ... other configurationAll Mistral STT Environment Variables
| Variable | Description | Default |
|---|---|---|
AUDIO_STT_ENGINE | Set to mistral | empty (uses local Whisper) |
AUDIO_STT_MISTRAL_API_KEY | Your Mistral API key | empty |
AUDIO_STT_MISTRAL_API_BASE_URL | Mistral API base URL | https://api.mistral.ai/v1 |
AUDIO_STT_MISTRAL_USE_CHAT_COMPLETIONS | Use chat completions endpoint | false |
AUDIO_STT_MODEL | STT model | empty (voxtral-mini-latest is used at request time) |
Transcription Methods
Mistral supports two transcription methods:
Standard Transcription (Default)
Uses the dedicated transcription endpoint. This is the recommended method.
Chat Completions Method
Turn on Use Chat Completions API in the admin Audio settings, or set AUDIO_STT_MISTRAL_USE_CHAT_COMPLETIONS=true, to use Mistral's chat completions API for transcription. The toggle shows only when Speech-to-Text Engine is MistralAI.
Open WebUI then posts to <API Base URL>/chat/completions instead of <API Base URL>/audio/transcriptions. The request sends the STT Model as model and one user message with two parts: the audio as base64 input_audio, and the instruction Transcribe this audio exactly as spoken in its original language. Do not translate it to another language. When a Language is set in your Settings > Audio, the instruction becomes Transcribe this audio exactly as spoken in <language>. Do not translate it. Open WebUI uses the reply's message content as the transcript, so set STT Model to a Mistral model that accepts audio input on the chat completions endpoint.
This method:
- Sends FLAC, M4A, MP3, MP4, MPEG, WAV and WebM audio as it is, and converts other formats, and AAC audio in an MP4 container, to MP3 first. Nothing is converted with
BYPASS_PYDUB_PREPROCESSINGon, which slim images always have - May provide different results than the standard endpoint
Using STT
- Click the microphone icon in the chat input
- Speak your message
- Click the microphone again or wait for silence detection
- Your speech will be transcribed and appear in the input box
Supported Audio Formats
Voxtral accepts common audio formats. The system defaults to accepting audio/* and video/webm.
If using the chat completions method, audio is automatically converted to mp3.
Troubleshooting
API Key Errors
If you see "Mistral API key is required":
- Verify your API key is entered correctly
- Check the API key hasn't expired
- Ensure your Mistral account has API access
Transcription Not Working
- Check container logs:
docker logs open-webui -f - Verify the STT Engine is set to
MistralAI - Try the standard transcription method (disable chat completions)
- If the error is
Failed to parse Mistral response: Empty transcript in response, the reply had no text. With Use Chat Completions API on, try another STT Model or turn the toggle off
Audio Format Issues
If using chat completions method and audio conversion fails, the error is Audio conversion failed. Chat completions API requires mp3 or wav format. On an image with USE_SLIM_DOCKER=true, Open WebUI does not convert audio for this method, and audio that reaches it as anything other than an .mp3 or .wav file fails with Mistral chat transcription requires MP3 or WAV in slim; local conversion is unavailable. To fix either error:
- Ensure FFmpeg is available in the container
- Try recording in a different format (wav or mp3)
- Switch to the standard transcription method
For more troubleshooting, see the Audio Troubleshooting Guide.
Comparison with Other STT Options
| Feature | Mistral Voxtral | OpenAI Whisper | Local Whisper |
|---|---|---|---|
| Cost | Per-minute pricing | Per-minute pricing | Free |
| Privacy | Audio sent to Mistral | Audio sent to OpenAI | Audio stays local |
| Model Options | voxtral-mini-2602 | gpt-transcribe, whisper-1 | tiny → large |
| GPU Required | No | No | Recommended |
Cost Considerations
Mistral charges per minute of audio for STT. Check Mistral's pricing page for current rates.
For free STT, use Local Whisper (the default) or the browser's Web API for basic transcription.