narrow-advantage-65481
12/30/2025, 8:54 AMtall-airline-16756
12/30/2025, 8:54 AMtall-airline-16756
12/30/2025, 8:55 AMlanguage parameter for the MiniMax TTS in the Python SDK. I can help but need one quick clarification so I give the right guidance:
Which integration are you using?
• the MiniMax plugin directly via livekit-agents[minimax], or
• the LiveKit Inference layer using inference.TTS in an AgentSession?
Also please share:
• the livekit-agents package version (pip show livekit-agents), and
• a short code snippet showing how you’re calling the TTS API (or the exact error you see).
Quick notes while you fetch that:
• MiniMax’s docs do not list language as a top-level parameter. Language can often be passed via extra_kwargs or controlled by model selection.
• Using inference.TTS lets you pass provider-specific options through extra_kwargs if you need language control.
Send the answers/snippet and I’ll give exact code you can try.
Sources: MiniMax TTS plugin guide | LiveKit docs | Cartesia TTS | LiveKit docs | Deepgram TTS | LiveKit docs | Rime TTS | LiveKit docsnarrow-advantage-65481
12/30/2025, 8:56 AMtall-airline-16756
12/30/2025, 8:56 AMlanguage_boost from livekit.plugins.minimax.TTS and it’s not available. That’s correct: the MiniMax plugin does not expose language_boost as a top-level parameter.
What you can do
• Pass provider-specific options (like language_boost) via extra_kwargs if you’re using the plugin entry that accepts it.
• Or use the inference.TTS path in an AgentSession, which explicitly forwards provider-specific options through extra_kwargs.
Example (plugin + extra_kwargs):
from livekit.plugins.minimax import TTS
tts = TTS(
model="your-model",
voice="your-voice",
extra_kwargs={"language_boost": 1.5}
)
audio = tts.synthesize("Text to speak")
Example (inference.TTS via AgentSession):
from livekit.inference import TTS as InferenceTTS
inference_tts = InferenceTTS(
model="minimax",
voice="your-voice",
extra_kwargs={"language_boost": 1.5}
)
# attach to AgentSession as your TTS provider
Next steps I can help with
• Share your livekit-agents package version (pip show livekit-agents) so I can confirm if a newer release added direct support.
• If extra_kwargs doesn’t work in your setup, share a short snippet of how you instantiate and call TTS so I can suggest an exact fix.narrow-advantage-65481
12/30/2025, 8:57 AMtall-airline-16756
12/30/2025, 8:57 AMlanguage_boost as a top-level argument on livekit.plugins.minimax.TTS. You can still use the native MiniMax option by passing it through extra_kwargs, or by using inference.TTS in an AgentSession, which also forwards provider-specific options.
Quick examples:
1) Using the MiniMax plugin with extra_kwargs
from livekit.plugins.minimax import TTS
tts = TTS(
model="your-model",
voice="your-voice",
extra_kwargs={"language_boost": 1.5}
)
audio = tts.synthesize("Text to speak")
2) Using inference.TTS (AgentSession)
from livekit.inference import TTS as InferenceTTS
inference_tts = InferenceTTS(
model="minimax",
voice="your-voice",
extra_kwargs={"language_boost": 1.5}
)
# attach inference_tts to your AgentSession as the TTS provider
If extra_kwargs doesn’t take effect in your setup, please paste the small snippet where you instantiate and call TTS (and any error/output). I’ll suggest the exact fix or confirm whether upgrading the package is needed.narrow-advantage-65481
12/30/2025, 9:00 AMtall-airline-16756
12/30/2025, 9:01 AMlanguage_boost via extra_kwargs to livekit.plugins.minimax.TTS, but that class does not accept extra_kwargs and does not expose language_boost. That’s why you get the TypeError.
What you can do next:
• Use the Inference path that does accept provider options: create an inference.TTS instance and attach it to your `AgentSession`; inference.TTS accepts extra_kwargs and will forward language_boost.
• Or call the MiniMax HTTP API directly from your code if language_boost is essential and you need immediate control.
• Optionally check for a newer plugin release, but v1.3.5’s livekit.plugins.minimax.TTS does not support language_boost.
If you want, paste the minimal snippet that shows how you currently instantiate and call minimax.TTS and I’ll provide the exact code to switch to inference.TTS or an HTTP call example.
Sources: MiniMax TTS plugin guide | LiveKit docs