Index of every page on this site: llms.txt
All skills
notedit avatar

/tts-skill

@9a2d593
by leeoxiangnotedit/happy-skills341 stars
40
Run it yourself

MiniMax TTS API - 文本转语音、声音克隆、声音设计

Use this Skill: https://skilld.dev/gh/notedit/happy-skills/tts-skill

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

rulessetup.md

≈338 tokens on demand. Your agent reads this file only when SKILL.md points to it.

环境配置

获取 MiniMax API Key

  1. 访问 MiniMax 开放平台
  2. 注册/登录账号
  3. 在控制台创建应用
  4. 获取 API Key

设置环境变量

macOS / Linux

在 ~/.zshrc 或 ~/.bashrc 中添加:

# MiniMax TTS 配置 (必需)
export MINIMAX_API_KEY="your-api-key-here"

# 可选配置
export MINIMAX_API_HOST="https://api.minimax.io"  # API 地址
export MINIMAX_OUTPUT_DIR="~/Downloads/minimax"   # 默认输出目录

添加后执行:

source ~/.zshrc  # 或 source ~/.bashrc

验证配置

echo $MINIMAX_API_KEY

安装依赖

pip install requests

测试连接

import sys
import os

# 添加 assets 目录到路径
skill_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, os.path.join(skill_dir, "assets"))

from minimax_tts import list_voices

# 测试 API 连接
voices = list_voices(voice_type="system")
print(f"连接成功,获取到 {len(voices)} 个系统声音")

常见问题

API Key 未设置

ValueError: 请设置环境变量 MINIMAX_API_KEY

解决方法:确保已正确设置环境变量并重新加载配置。

网络连接失败

检查网络连接和 API 地址是否正确。

权限不足

确认 API Key 有相应的权限。

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning1mo5 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    The skill provides a standard Python wrapper for the MiniMax Text-to-Speech API. It safely manages API keys through environment variables and uses system audio players to play generated speech files. No malicious patterns or security vulnerabilities were detected.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

  • Runlayer9mo

    7/7 files flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 9a2d593. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Dormantupdated 9 months ago
metadata
{
  "tags": "minimax, tts, voice, audio, speech"
}

README badge

README badge for notedit/happy-skills/tts-skill