tts-voiceover

tts-voiceover is a skill for Claude Code, Codex from ZJU-REAL/Easel. It costs 164 tokens per session (1,743 once invoked), scanned A, original, Apache-2.0.

A text-to-speech tool that turns scripts or other written text into spoken audio, with optional synchronized SRT subtitle files.

In plain words
What is it for?
Use it to create spoken narration, readings, voiceovers, or audio tracks that can be mixed with music or added to a video.
Why use it?
It provides narration or voiceover without requiring a person to record every line.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python skills/shared/scripts/tts.py voices # 常用中文音色 + 简介.

Good fit Use it to create spoken narration, readings, voiceovers, or audio tracks that can be mixed with music or added to a video.

Compare 6 skills from other repositories ↓
About the project

Easel is an open-source content workspace and AI agent for managing social media from trend discovery through planning, content creation, publishing, and performance analysis. It is intended for social media creators and maintains separate account profiles, content projects, platform adaptations, and publishing records. The catalogue skills support these content and publishing workflows.

ZJU-REAL/Easel · 5,054 stars · on GitHub · zju-real.github.io

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/ZJU-REAL/Easel
agentmods
npx agentmods add skills/zju-real/easel/tts-voiceover

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tts-voiceover

README.md
[![agentmods](https://agentmods.dev/badge/skills/zju-real/easel/tts-voiceover/github.svg)](https://agentmods.dev/skills/zju-real/easel/tts-voiceover)
Your own site
<a href="https://agentmods.dev/skills/zju-real/easel/tts-voiceover"><img src="https://agentmods.dev/badge/skills/zju-real/easel/tts-voiceover/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tts-voiceover

Your own site · 80×15
<a href="https://agentmods.dev/skills/zju-real/easel/tts-voiceover"><img src="https://agentmods.dev/badge/skills/zju-real/easel/tts-voiceover.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 164 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,743 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00164 $0.01743
Opus 5.5 $0.00066 $0.00697
Sonnet 5.5 $0.00033 $0.00349
Haiku 4.5 $0.00016 $0.00174

Measured 1mo ago against content hash 730cd38949d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tts-voiceover scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/builtin/tts-voiceover/SKILL.md · 116 lines

How it starts

The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.

文字转语音配音(TTS Voiceover)

配置检查路径铁律:先 cd 到运行时说明给出的 Easel 项目根,确认当前目录有 .env 和 skills/shared/scripts/。云 TTS 配置只能用项目根的 skills/shared/scripts/model_registry.py configured --group voice --env-file .env 和 skills/shared/scripts/voice_clone.py check ... --env-file .env 判断;不得在 workspace 跑共享脚本副本,也不得用 env / printenv 推断 Key/URL 缺失。

把文案 / 脚本合成为 AI 语音(口播、旁白、朗读)。共享脚本 skills/shared/scripts/tts.py speak: 默认闭源优先——配了 .env 的 VOICE_PROVIDER(+ VOICE_API_KEY) 就走闭源云 TTS(voice_clone, 按句合成+拼接+分句 SRT,有情感、像真人),没 key 才退 edge(AI 味、生硬,仅兜底)。 --engine closed/edge 可强制;闭源音色用 --voice 传 voice-id(如 FunAudioLLM/CosyVoice2-0.5B:alex), 旁白默认 alex,可用 VOICE_NARRATOR_VOICE_ID 覆盖。合成后语音可交 audio_ops.py/video_ops.py 混音或加到视频。

输入

字段 必填 说明
text / file 是 待配音的文本,或文本文件路径(长文本推荐 --file)
voice 否 音色,默认 zh-CN-XiaoxiaoNeural(晓晓)
rate/volume/pitch 否 语速 / 音量 / 音调微调
output 否 默认 outputs/主题名/{name}.mp3

输出

  • 配音音频文件(mp3,可选 wav/m4a),放入 outputs/主题名/
  • 可选同步输出 SRT 字幕(--subtitle),供视频烧字幕用
  • 打印实际执行的 edge-tts 命令 + 输出文件时长/大小/音色

前置:外网代理

edge-tts 调微软在线服务,必须能访问外网。内网环境先设代理:

export https_proxy=http://<代理host>:<端口> http_proxy=http://<代理host>:<端口>

脚本会自动读环境变量代理并透传给 edge-tts(也可用 --proxy 覆盖)。

执行步骤

脚本路径(相对项目根):skills/shared/scripts/tts.py。每个子命令支持 -h。

0. 挑音色(可选)

python skills/shared/scripts/tts.py voices          # 常用中文音色 + 简介
python skills/shared/scripts/tts.py voices --all    # 拉全量 zh- 音色(需外网)

1. 合成配音 speak

# 最简:一句话 → mp3
python skills/shared/scripts/tts.py speak --text "欢迎来到本期内容" \
  -o outputs/主题名/intro.mp3

# 长文本从文件读 + 换音色 + 加速 10%
python skills/shared/scripts/tts.py speak --file script.txt \
  -o outputs/主题名/narration.mp3 --voice zh-CN-YunxiNeural --rate +10%

# 同步出 SRT 字幕(视频烧字幕用)
python skills/shared/scripts/tts.py speak --file script.txt \
  -o outputs/主题名/vo.mp3 --subtitle outputs/主题名/vo.srt

# 输出 wav(需 ffmpeg,便于后续无损处理)
python skills/shared/scripts/tts.py speak --text "……" \
  -o outputs/主题名/vo.wav --format wav

Read the full file on GitHub · 116 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed 730cd38949d2
  2. 1mo ago Changed 0a2d32a85213
  3. 2mo ago First seen · 116 lines · 164 tokens per session scan A 94887d59a022

Subscribe to this mod's changes

tts-voiceover is a skill published in the GitHub repository ZJU-REAL/Easel (5,054 stars, last pushed 3d ago), licensed Apache-2.0. It adds 164 tokens to every session and 1,743 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

tts-voiceover compared with skills from other repositories

tts-voiceover next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tts-voiceoverZJU-REAL/EaselSkill5.1k3d agoApache-2.0A164Claude Code, Codex
information-security-manager-iso27001seaworld008/Commonly-used-high-value-skillsSkill752d agoMITA34Claude Code, Codex
bmad-specalvin-reyes/better-agentic-ideSkill3813d agoMITA76Claude Code
video-editoroyi77/1ai-skillsSkill19yesterdayMITA59Claude Code
bmad-advanced-elicitationalvin-reyes/better-agentic-ideSkill3813d agoMITA55Claude Code
ai-newsletteroyi77/1ai-skillsSkill19yesterdayMITA36Claude Code
responsive-designoyi77/1ai-skillsSkill19yesterdayMITA23Claude Code