用途:该 Skill 封装 MiniMax TTS API,用于文本转语音、声音克隆和声音设计三类语音能力。
主要能力:text_to_audio() 将文本转为语音文件;list_voices() 获取可用声音列表,可按 voice_type 筛选;voice_clone() 基于音频文件克隆自定义声音;voice_design() 根据文字描述生成声音;play_audio() 播放音频文件。
使用方式:先设置环境变量 export MINIMAX_API_KEY="your-api-key",详细配置见 setup.md。Python 中引入模块: import sys import os skill_dir = os.path.dirname(os.path.abspath(file)) sys.path.insert(0, os.path.join(skill_dir, "assets")) from minimax_tts import text_to_audio, list_voices, voice_clone, voice_design, play_audio
可选模型包括 speech-02-hd、speech-02-turbo、speech-01-hd、speech-01-turbo、speech-2.6-hd、speech-2.6-turbo。常用预设声音 ID 如 female-shaonv、female-yujie、female-chengshu、male-qingnian、male-chengshu,更多声音通过 list_voices() 查询。
适用场景:需要批量生成语音、克隆特定音色或按描述生成声音的应用。
限制:依赖 MiniMax API Key 与对应账号;返回结果受 API 服务约束。费用、配额、支持平台与语言范围暂未提供。