Skip to main content

Using Mistral for Text-to-Speech

This guide covers how to use Mistral's Text-to-Speech API with Open WebUI.

Looking for STT?

Requirements

  • A Mistral API key
  • Open WebUI installed and running

Quick Setup (UI)

  1. Click your profile icon (bottom-left corner)
  2. Select Admin Panel
  3. Click Settings -> Audio tab
  4. Configure the following:
SettingValue
Text-to-Speech EngineMistralAI
API Base URLhttps://api.mistral.ai/v1
API KeyYour Mistral API key
TTS Modelmistral-tts-latest (or leave empty for default)
TTS VoiceChoose from available voices
  1. Click Save

Available Models

ModelDescription
mistral-tts-latestDefault 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 configuration

All Mistral TTS Environment Variables

VariableDescriptionDefault
AUDIO_TTS_ENGINESet to mistralempty (uses browser-only TTS)
AUDIO_TTS_MISTRAL_API_KEYYour Mistral API keyempty
AUDIO_TTS_MISTRAL_API_BASE_URLMistral API base URLhttps://api.mistral.ai/v1
AUDIO_TTS_MODELTTS modelmistral-tts-latest (effective default for Mistral engine)
AUDIO_TTS_VOICEVoice IDempty

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/voices request errors

Testing TTS

  1. Start a new chat
  2. Send a message to any model
  3. Click the speaker icon on the AI response to hear it read aloud

Troubleshooting

"Mistral API key is required for Mistral TTS"

  1. Confirm AUDIO_TTS_MISTRAL_API_KEY is set (or entered in Admin Audio settings)
  2. Save settings and retry

No voices shown in the dropdown

  1. Verify network access from Open WebUI to AUDIO_TTS_MISTRAL_API_BASE_URL
  2. Check Open WebUI logs for Mistral voice list errors
  3. Confirm your key has permission to access Mistral audio APIs

TTS request fails

  1. Verify AUDIO_TTS_ENGINE=mistral
  2. Try leaving the model empty (uses mistral-tts-latest)
  3. Try another voice ID from the fetched list

For broader audio debugging, see the Audio Troubleshooting Guide.

This content is for informational purposes only and does not constitute a warranty, guarantee, or contractual commitment. Open WebUI is provided "as is." See your license for applicable terms.