Back to skills
SKILL.md
Minimax Tts Cn
ASecurity调用 MiniMax 语音合成 API 生成语音。支持系统音色、克隆音色、流式/非流式输出。使用场景:用户需要生成高质量中文语音、语音合成、文本转语音。
- 21 stars
- 0 votes
- 0 copies
- 7 views
- Added September 7, 2026
Works with
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add modbender/skill-library-mcp --skill minimax-tts-cn --agent claude-codeAre you the author of Minimax Tts Cn?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/modbender-minimax-tts-cn)---
name: MiniMax TTS
description: 调用 MiniMax 语音合成 API 生成语音。支持系统音色、克隆音色、流式/非流式输出。使用场景:用户需要生成高质量中文语音、语音合成、文本转语音。
---
# 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 | 性价比高 |
Files in this skill
- SKILL.md
- scripts/tts.py
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.