Overview
This plugin allows you to use MiniMax as a TTS provider for your voice agents.
Installation
Install the plugin from PyPI:
pip install "livekit-agents[minimax]~=1.4"
Authentication
The MiniMax plugin requires a MiniMax API key.
Set MINIMAX_API_KEY in your .env file.
Usage
Use MiniMax TTS within an AgentSession or as a standalone speech generator. For example, you can use this TTS in the Voice AI quickstart.
from livekit.plugins import minimaxsession = AgentSession(tts=minimax.TTS(),# ... llm, stt, etc.)
Parameters
This section describes some of the available parameters. See the plugin reference for a complete list of all available parameters.
modelTTSModel | stringDefault: DEFAULT_MODELMiniMax TTS model to use. To learn more, see TTS model options.
voiceTTSVoice | stringDefault: DEFAULT_VOICE_IDMiniMax TTS voice to use.
emotionTTSEmotion | stringDefault: NoneControl emotional tone for speech. Valid values are happy, sad, angry, fearful, disgusted, surprised, neutral.
speedfloatSpeech speed where higher values speak faster. Range is 0.5 to 2.0.
pronunciation_dictdict[str, list[str]]Defines the pronunciation rules for specific characters or symbols. Read more in the MiniMax API documentation.
english_normalizationboolSet to true to enable text normalization. This feature improves the model's pronunciation of numbers and dates, with a minor tradeoff in latency. Read more in the MiniMax API FAQ.
Additional resources
The following resources provide more information about using MiniMax with LiveKit Agents.