chattts-local

本地 ChatTTS 语音合成技能。使用 ChatTTS 模型将文字转换为自然流畅的中文语音。完全本地运行,免费无需 API Key。支持调节语速、音调、情感。使用场景:(1) QQ 消息语音回复 (2) 文档朗读 (3) 通知提醒语音化 (4) 长文本转语音

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "chattts-local" with this command: npx skills add wodecanyun66-spec/chattts-local

ChatTTS 本地语音合成

快速开始

使用方法

在消息中要求生成语音,例如:

  • "用语音回复我"
  • "把这段话读出来:[文字内容]"
  • "生成语音:今天天气真好"

输出格式

使用 <qqvoice> 标签发送语音文件:

<qqvoice>/path/to/output.wav</qqvoice>

技术细节

模型信息

  • 模型: ChatTTS
  • 语言: 中文(主要优化)
  • 采样率: 24000Hz
  • 格式: WAV/MP3
  • 运行: 本地 GPU/CPU

参数配置

参数默认值说明
speed1.0语速 (0.5-2.0)
pitch1.0音调 (0.5-2.0)
temperature0.3随机性 (0-1)
top_k20采样参数
top_p0.7采样参数

脚本调用

使用 scripts/tts.py 生成语音:

python3 scripts/tts.py "要转换的文字" --output output.wav

参数

  • text: 要转换的文字(必填)
  • --output: 输出文件路径
  • --speed: 语速调节
  • --pitch: 音调调节
  • --seed: 随机种子(固定音色)

依赖安装

首次使用需要安装依赖:

pip install ChatTTS torch torchaudio

注意事项

  1. 首次运行会下载模型(约 500MB)
  2. GPU 加速可选,CPU 也能运行但较慢
  3. 长文本建议分段处理(<500 字/段)
  4. 音色由 seed 参数控制,固定 seed 可复现相同音色

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Huo15 Openclaw Enhance

火一五·克劳德·龙虾增强插件 v5.7.8 — 全面适配 openclaw 2026.4.24:peerDep ^4.24 + build/compat 同步到 4.24 + 14 处 api.on 全部去掉 as any 改成 typed hook(hookName 联合类型 + handler 自动推断 Pl...

Registry SourceRecently Updated
General

Content Trend Analyzer

Aggregates and analyzes content trends across platforms to identify hot topics, user intent, content gaps, and generates data-driven article outlines.

Registry SourceRecently Updated
General

Prompt Debugger

Debug prompts that produce unexpected AI outputs — diagnose failure modes, identify ambiguity and conflicting instructions, test variations, compare model re...

Registry SourceRecently Updated
General

Indie Maker News

独行者 Daily - 变现雷达。读对一条新闻,少走一年弯路。每天5分钟,给创业者装上商业雷达。聚焦一人公司、副业、创业变现资讯,智能分类,行动导向。用户下载即能用,无需本地部署!

Registry SourceRecently Updated
chattts-local | V50.AI