Step Tts 标志

Step Tts

组织
stepfun-ai
step-tts

Use this skill whenever the user wants to convert text into speech, generate playable audio from written text, read a sentence aloud, narrate content, create voiceovers, or clone / customize voices, and the backend must be 阶跃星辰 StepFun TTS. Triggers include mentions of 'TTS', 'text to speech', 'step-tts', 'stepfun', '阶跃', '语音合成', '生成语音', '转成语音', '读出来', '念出来', '朗读', '配音', '旁白', '播报', or requests to turn written content into spoken audio using StepFun models. Also use when the user wants to control StepFun voice IDs, speed, volume, emotion/style tags (情绪/风格标签), or call the StepFun voice-clone API with an existing file_id. Do NOT use this skill for speech recognition or audio-to-text tasks; those belong to ASR skills. Do NOT use this skill for Noiz or Kokoro backends.

概览

发布者stepfun-ai
代码仓库StepAudio-Skills
技能名称step-tts
星标数
29
复刻数
4
附带文件
1
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 1 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 stepfun-ai 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Step Tts AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/stepfun-ai/StepAudio-Skills/tree/main/skills/step-tts
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/stepfun-ai/StepAudio-Skills.git /tmp/StepAudio-Skills
mkdir -p .claude/skills
cp -r /tmp/StepAudio-Skills/skills/step-tts .claude/skills/step-tts
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Step Tts,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Step Tts。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Step Tts 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

step-tts

Use 阶跃星辰 StepFun TTS (models step-tts-2, step-tts-mini, step-tts-vivid) as the backend for all text-to-speech and voice-clone operations.

This mirrors the spirit of the original tts skill, but all network calls go to the StepFun APIs:

For StepFun best-practice guidance and official voice list, refer to the docs:
音频合成最佳实践

Triggers

  • text to speech / tts / speak / say / read aloud / narration / voiceover
  • 语音合成 / 生成语音 / 转成语音 / 合成语音
  • 读出来 / 念出来 / 朗读 / 朗读一下 / 帮我读一下 / 读一遍
  • 配音 / 旁白 / 播报 / 口播 / 文案配音
  • step-tts / stepfun / 阶跃 / 阶跃星辰 语音
  • 想把一句话、一段文字、文案、脚本、文章变成可播放的语音
  • 想用具体 StepFun 模型或官方音色(例如 step-tts-mini + cixingnansheng)
  • 想根据 StepFun 文档里的情绪 / 风格标签(如「高兴」「慢速」)调节说话方式
  • 想基于已有 file_id 调用 StepFun 的「音色复刻」接口

If the user explicitly mentions StepFun/阶跃 for TTS, prefer this skill over other TTS skills.

Use this skill for text → audio tasks.

Do not use this skill for:

  • speech recognition
  • audio transcription
  • audio → text
  • extracting subtitles from audio

Those tasks should use ASR skills such as step-asr.

Requirements

  • A valid StepFun API key. Preferred env var: STEPFUN_API_KEY.
  • Legacy env var STEP_API_KEY is still accepted for compatibility.
  • CLI dependencies: bash, curl, python3.

The API key is sent as:

  • Header: Authorization: Bearer STEPFUN_API_KEY

You can configure it once via the config command (see below).

CLI: tts.sh

Main entrypoint: skills/step-tts/scripts/tts.sh

1. Configure API key

bash
bash skills/step-tts/scripts/tts.sh config --set-api-key YOUR_STEPFUN_API_KEY

This writes the key (without the Bearer prefix) into ~/.stepfun_api_key and uses it automatically for all later calls.
If STEPFUN_API_KEY is set in the environment, it takes precedence. The legacy env var STEP_API_KEY and legacy file ~/.step_api_key are also supported.

Check the current configuration:

bash
bash skills/step-tts/scripts/tts.sh config

The key will be printed in masked form.

2. Simple text → audio (speak)

Backed by POST https://api.stepfun.com/v1/audio/speech.

bash
# Minimal
bash skills/step-tts/scripts/tts.sh speak \
  -t "智能阶跃,十倍每一个人的可能" \
  -o step.opus

# From text file with explicit overrides
bash skills/step-tts/scripts/tts.sh speak \
  -f article.txt \
  --model step-tts-mini \
  --voice cixingnansheng \
  --response-format mp3 \
  -o article.mp3

# With speed / volume / emotion / style
bash skills/step-tts/scripts/tts.sh speak \
  -t "今天的学习进度很棒,我们继续加油!" \
  --model step-tts-mini \
  --voice livelybreezy-female \
  --speed 1.1 \
  --volume 1.2 \
  --emotion 高兴 \
  -o cheer.opus

Key options (mapped 1:1 to StepFun audio/speech API):

  • --model (optional, default step-tts-2): step-tts-2 | step-tts-mini | step-tts-vivid
  • --voice (optional, default elegantgentle-female): one of StepFun 官方音色 voice / voice_id,例如:
    • cixingnansheng
    • elegantgentle-female
    • yuanqishaonv
    • See full list in 官方文档: 官方音色清单
  • --response-format: wav | mp3 | flac | opus | pcm (default: opus)
  • --speed: 0.5~2.0 (语速)
  • --volume: 0.1~2.0 (音量)
  • --emotion: 情绪标签,对应 voice_label.emotion(如:高兴、悲伤、生气 等)
  • --style: 语速 / 演绎风格标签,对应 voice_label.style(如:慢速、极快、温柔 等)
  • --language: 语言标签,对应 voice_label.language(如:粤语、四川话、日语),三者和 emotion/style 只可三选一。
  • --sample-rate: 采样率,支持 8000、16000、22050、24000,默认 24000。

3. Voice clone (clone-voice)

Backed by POST https://api.stepfun.com/v1/audio/voices.

bash
bash skills/step-tts/scripts/tts.sh clone-voice \
  --model step-tts-mini \
  --file-id file-Ckyl3cV09A \
  --text "智能阶跃,十倍每一个人的可能" \
  --sample-text "今天天气不错"

Note: 如何获得 file_id(音色复刻的前提)

This command assumes you have already uploaded the reference audio via the StepFun Files API and obtained a file_id:

  • Use POST https://api.stepfun.com/v1/files
  • Set purpose="storage"
  • Upload a 5–10 second mp3 or wav clip that contains the voice you want to clone
    (例如:特朗普、某个主播、或你自己的声音)
  • The response will be a File object with an id like file-abc123 — this is the value to pass to --file-id

Example curl (simplified from the StepFun docs):

bash
curl https://api.stepfun.com/v1/files \
  -H "Authorization: Bearer $STEPFUN_API_KEY" \
  -F purpose="storage" \
  -F file="@trump_sample.wav"

Once you have the returned id, you can call:

bash
bash skills/step-tts/scripts/tts.sh clone-voice \
  --model step-tts-mini \
  --file-id file-abc123 \
  --text "智能阶跃,十倍每一个人的可能" \
  --sample-text "今天天气不错"

CLI options:

  • --model (required): one of StepFun TTS models, e.g. step-tts-mini
  • --file-id (required): File ID of reference audio
  • --text (optional): 原始音频对应文本,不传则由系统 ASR 自动识别(官方建议传入以提升质量)
  • --sample-text (optional): 用于生成试听音频的文本(最多 50 个字)

Response JSON (printed to stdout) contains:

  • id: 新音色 ID,可直接用在 --voice 字段里
  • sample_audio: base64 编码的试听 wav,可自行解码保存

4. Help

bash
bash skills/step-tts/scripts/tts.sh --help
bash skills/step-tts/scripts/tts.sh speak --help
bash skills/step-tts/scripts/tts.sh clone-voice --help

Agent Guidance

When using this skill:

  • Prefer StepFun voices / labels as documented in 音频合成最佳实践 instead of Noiz or Kokoro names.
  • When the user asks for a type of voice (e.g. “营销女声”, “有声书男声”), choose an appropriate voice and optional emotion/style tags from the StepFun docs. The guide at https://platform.stepfun.com/docs/zh/guide/tts contains per‑scenario recommendations and the full 官方音色清单。
  • For ordinary speak tasks, if the user does not specify a voice, default to elegantgentle-female. If the user explicitly specifies a voice, use the user-provided voice instead.
  • For ordinary speak tasks, if the user does not specify a model, default to step-tts-2. If the user explicitly specifies a model, use the user-provided model instead.
  • If the user does not specify an output format, default to opus.
  • For cloning tasks, clearly inform the user that they must first upload audio to StepFun to get a file_id, then this skill can call clone-voice to create a reusable voice ID.
  • If the user previously used the tts skill with Noiz, you can suggest migrating parameters (text, SRT, high-level emotion) while switching backend to StepFun via this skill.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Step Tts AI 技能有什么作用?

Use this skill whenever the user wants to convert text into speech, generate playable audio from written text, read a sentence aloud, narrate content, create voiceovers, or clone / customize voices, and the backend must be 阶跃星辰 StepFun TTS. Triggers include mentions of 'TTS', 'text to speech', 'step-tts', 'stepfun', '阶跃', '语音合成', '生成语音', '转成语音', '读出来', '念出来', '朗读', '配音', '旁白', '播报', or requests to turn written content into spoken audio using StepFun models. Also use when the user wants to control StepFun voice IDs, speed, volume, emotion/style tags (情绪/风格标签), or call the StepFun voice-clone...

为什么在 TypingMind 中使用 Step Tts?

因为您只需安装一次,就能搭配任何模型使用。Step Tts 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Step Tts?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/stepfun-ai/StepAudio-Skills/tree/main/skills/step-tts。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Step Tts?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Step Tts 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Step Tts 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Step Tts AI 技能免费吗?

是的。stepfun-ai 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇