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.

ruleslist-voices.md

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

列出可用声音 (List Voices)

函数签名

def list_voices(voice_type: str = "all") -> list

参数说明

参数 类型 默认值 说明
voice_type str "all" 声音类型筛选

voice_type 可选值

  • all - 所有声音
  • system - 系统预设声音
  • cloned - 用户克隆的声音
  • designed - 用户设计的声音

使用示例

获取所有声音

from minimax_tts import list_voices

voices = list_voices()
for voice in voices:
    print(f"{voice['voice_id']}: {voice['name']}")

只获取系统声音

system_voices = list_voices(voice_type="system")
print(f"共 {len(system_voices)} 个系统声音")

获取用户克隆的声音

cloned_voices = list_voices(voice_type="cloned")
for voice in cloned_voices:
    print(f"克隆声音: {voice['voice_id']} - {voice['name']}")

返回值格式

[
    {
        "voice_id": "female-shaonv",
        "name": "少女音",
        "type": "system",
        "language": "zh",
        "description": "清新活泼的少女声音",
        "sample_url": "https://..."  # 试听链接
    },
    {
        "voice_id": "my-cloned-voice",
        "name": "我的声音",
        "type": "cloned",
        "language": "zh",
        "created_at": "2024-01-01T00:00:00Z"
    }
]

系统预设声音列表

女声

voice_id 名称 特点
female-shaonv 少女音 清新活泼
female-yujie 御姐音 成熟知性
female-chengshu 成熟女声 稳重大方
female-tianmei 甜美音 温柔甜美
female-qingxin 清新音 自然清新

男声

voice_id 名称 特点
male-qingnian 青年男声 朝气蓬勃
male-chengshu 成熟男声 沉稳大气
male-磁性 磁性男声 低沉有磁性

特殊声音

voice_id 名称 特点
narrator 旁白音 适合叙述
news 新闻播音 标准播音腔

筛选和搜索

按语言筛选

voices = list_voices()
chinese_voices = [v for v in voices if v.get("language") == "zh"]
english_voices = [v for v in voices if v.get("language") == "en"]

按名称搜索

voices = list_voices()
female_voices = [v for v in voices if "女" in v.get("name", "")]

注意事项

  1. 系统声音 ID 是固定的,不会改变
  2. 克隆和设计的声音 ID 是在创建时指定的
  3. 建议缓存声音列表,避免频繁调用 API

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