# MiniMax TTS

> 调用 MiniMax 语音合成 API 生成语音。支持系统音色、克隆音色、流式/非流式输出。使用场景：用户需要生成高质量中文语音、语音合成、文本转语音。

- Skill: `modbender/minimax-tts-3` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add modbender/minimax-tts-3`
- Raw SKILL.md: https://api.skillmd.com/api/skills/modbender/minimax-tts-3/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: modbender (https://skillmd.com/u/modbender)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/modbender/minimax-tts-3

---



# MiniMax TTS Skill

调用 MiniMax TTS API 生成语音。

## 配置

设置环境变量：
```bash
export MINIMAX_API_KEY="your-api-key"
```

## 使用方式

### 命令行

```bash
python3 ~/.openclaw/workspace/skills/minimax-tts/scripts/tts.py "要转语音的文本"
```

### 参数选项

| 参数 | 说明 | 默认值 |
|------|------|--------|
| `--text` | 要转语音的文本 | 必填 |
| `--model` | 模型 | speech-2.8-turbo |
| `--voice` | 音色ID | Chinese_Male_Adult |
| `--speed` | 语速 | 1.0 |
| `--format` | 音频格式 | mp3 |
| `--output` | 输出文件 | output.mp3 |

### 示例

```bash
# 基本用法
python3 ~/.openclaw/workspace/skills/minimax-tts/scripts/tts.py "你好世界"

# 指定音色和模型
python3 ~/.openclaw/workspace/skills/minimax-tts/scripts/tts.py "你好世界" --voice Chinese_Female_Adult --model speech-2.8-hd

# 保存到指定文件
python3 ~/.openclaw/workspace/skills/minimax-tts/scripts/tts.py "测试语音" --output test.mp3
```

## 可用音色

调用 `get_voice` API 获取当前账号下所有音色：

```bash
python3 ~/.openclaw/workspace/skills/minimax-tts/scripts/tts.py --list-voices
```

常见系统音色：
- `Chinese_Male_Adult` - 中文男声
- `Chinese_Female_Adult` - 中文女声
- `English_Male_Adult` - 英文男声
- `English_Female_Adult` - 英文女声

## 支持的模型

| 模型 | 特点 |
|------|------|
| speech-2.8-hd | 最高质量，40+语言 |
| speech-2.8-turbo | 低延迟 |
| speech-2.6-hd | 高相似度 |
| speech-2.6-turbo | 性价比高 |

