agentleFS
gitByEOSgitByEOS/open-part-skills/skills/voice-clone/SKILL.md

voice-clone

Skill38 starsChanged 10 days agoMITView on GitHub

使用 Confucius4-TTS Gradio API 做参考音色克隆和文本转语音。

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Voice Clone

用途

用 Confucius4-TTS 在线 Demo API,把文本合成为参考音色语音。

默认参考音色:

assets/miss-arrogant.mp3

快速使用

在本 Skill 目录执行:

python3 scripts/confucius4_tts.py --text "你好,这是一次声音克隆测试。" --out output.wav

使用文本文件:

python3 scripts/confucius4_tts.py --text-file input.txt --out output.wav

指定参考音色:

python3 scripts/confucius4_tts.py \
  --reference /path/to/reference.mp3 \
  --text-file input.txt \
  --out output.wav

参数

参数默认说明
--text <text>空要合成的文本
--text-file <path>空从文件读取要合成的文本
--reference <path>assets/miss-arrogant.mp3参考音色
--lang <code>zh语言代码
--out <path>voice-clone-output.wav输出音频
--base-url <url>Confucius4-TTS DemoGradio 服务地址

--text 和 --text-file 必须提供一个;同时提供时优先使用 --text。

Agent 工作流

当用户要合成语音时:

  1. 确认参考音频和文本来源
  2. 如用户直接给长文本,写入临时文本文件
  3. 运行 python3 scripts/confucius4_tts.py
  4. 确认输出 wav 文件存在和大小
  5. 把输出路径反馈给用户

注意

  • 该脚本只依赖 Python 标准库,调用公开 Gradio Demo,不需要 API Key
  • 远端可能排队、限流或临时不可用

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.