Using Mistral for Text-to-Speech
This guide covers how to use Mistral's Text-to-Speech API with Open WebUI.
Looking for STT?
See the companion guide: Using Mistral Voxtral for Speech-to-Text
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 |
|---|---|
| Text-to-Speech Engine | MistralAI |
| API Base URL | https://api.mistral.ai/v1 |
| API Key | Your Mistral API key |
| TTS Model | mistral-tts-latest (or leave empty for default) |
| TTS Voice | Choose from available voices |
- Click Save
Available Models
| Model | Description |
|---|---|
mistral-tts-latest | Default model used for Mistral TTS |
info
If AUDIO_TTS_MODEL is empty, Open WebUI defaults to mistral-tts-latest for Mistral TTS.
Environment Variables Setup
If you prefer to configure via environment variables:
services:
open-webui:
image: ghcr.io/open-webui/open-webui:main
environment:
- AUDIO_TTS_ENGINE=mistral
- AUDIO_TTS_MISTRAL_API_KEY=your-mistral-api-key
- AUDIO_TTS_MISTRAL_API_BASE_URL=https://api.mistral.ai/v1
- AUDIO_TTS_MODEL=mistral-tts-latest
- AUDIO_TTS_VOICE=<voice-id>
# ... other configurationAll Mistral TTS Environment Variables
| Variable | Description | Default |
|---|---|---|
AUDIO_TTS_ENGINE | Set to mistral | empty (uses browser-only TTS) |
AUDIO_TTS_MISTRAL_API_KEY | Your Mistral API key | empty |
AUDIO_TTS_MISTRAL_API_BASE_URL | Mistral API base URL | https://api.mistral.ai/v1 |
AUDIO_TTS_MODEL | TTS model | mistral-tts-latest (effective default for Mistral engine) |
AUDIO_TTS_VOICE | Voice ID | empty |
Choosing Voices
Open WebUI queries the configured Mistral endpoint for available voices and shows them in the TTS Voice selector.
If voices are not listed:
- Confirm your API key is valid
- Verify the API base URL is reachable from the Open WebUI server/container
- Check logs for
/audio/voicesrequest errors
Testing TTS
- Start a new chat
- Send a message to any model
- Click the speaker icon on the AI response to hear it read aloud
Troubleshooting
"Mistral API key is required for Mistral TTS"
- Confirm
AUDIO_TTS_MISTRAL_API_KEYis set (or entered in Admin Audio settings) - Save settings and retry
No voices shown in the dropdown
- Verify network access from Open WebUI to
AUDIO_TTS_MISTRAL_API_BASE_URL - Check Open WebUI logs for Mistral voice list errors
- Confirm your key has permission to access Mistral audio APIs
TTS request fails
- Verify
AUDIO_TTS_ENGINE=mistral - Try leaving the model empty (uses
mistral-tts-latest) - Try another voice ID from the fetched list
For broader audio debugging, see the Audio Troubleshooting Guide.