← 返回 Skills 市场
jimpenn

文转粤语音 - Cantonese TTS

作者 jimpenn · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
29
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install cantonese-tts
功能描述
将文字转换为粤语语音。输入普通话或粤语文字,自动转换为粤语口吻后生成粤语语音MP3。支持四种语气:normal(普通)、slow(慢速/悲伤)、fast(快速/开心)、angry(生气/急躁)。触发词:粤语语音、广东话语音、文转粤语、文字转粤语、粤语朗读、Cantonese TTS。
使用说明 (SKILL.md)

文转粤语音

将输入文字转为粤语语音的三个步骤。

工作流程

步骤1:文字转粤语

将用户输入的文字转换为粤语表达。参考以下粤语特征:

核心词汇替换

普通话 粤语
漂亮/好
东西
没有
为什么 点解
不/不是 唔/唔系
搞定 搞掂
厉害 犀利
聪明/能干
太好了 好嘢
喝茶/吃点心 饮茶
吃饭 食饭
上班 返工
下班 收工
拿/取
有空 得闲
谢谢/劳驾 唔该
谢谢(正式) 多谢
这样/那样
会/认识
对/正确/刚好
什么
我/我们 我/我哋
你/你们 你/你哋
他/她
现在 而家
先(放句末:你行先)

语气词:啦、嘅、咩、喎、㗎、吖、嘛、咋、囉、喇、啫

语法调整

  • 否定:唔 + V(唔去、唔食)
  • 完成:V + 咗(食咗喇)
  • 进行:喺 + V + 紧(佢喺食饭紧)
  • "先"放句末(你行先、我食先)

步骤2:选择语气

根据用户意图选择语气参数:

语气 Rate Pitch 适用场景
normal +18% +8Hz 普通/中性
slow +0% +8Hz 平静/悲伤
fast +24% +8Hz 开心/兴奋
angry +36% +12Hz 不耐烦/生气

默认为 normal

步骤3(可选):选择语音

通过 --voice 参数选择发音人:

参数值 语音 性别
hiuMaan(默认) 胡曼 (HiuMaan) 女声
hiuGaai 曉佳 (HiuGaai) 女声
wanLung 雲龍 (WanLung) 男声

步骤4:生成语音

python scripts/text_to_cantonese_voice.py "粤语文字" [normal|slow|fast|angry] [--voice 语音]

输出:MP3 文件,路径打印到控制台。

示例

# 普通语气,默认女声(胡曼)
python scripts/text_to_cantonese_voice.py "你今日好嘛?" normal

# 开心语气,默认女声
python scripts/text_to_cantonese_voice.py "好開心呀!" fast

# 慢速/悲伤,默认女声
python scripts/text_to_cantonese_voice.py "我好傷心..." slow

# 生气,默认女声
python scripts/text_to_cantonese_voice.py "你到底聽唔聽我講?" angry

# 指定男声雲龍
python scripts/text_to_cantonese_voice.py "大家好,我係蝦仔。" normal --voice wanLung

# 指定女声曉佳,开心语气
python scripts/text_to_cantonese_voice.py "今日天氣好好!" fast --voice hiuGaai
安全使用建议
Install only if you expect ClawHub maintainer/developer automation. Review the moderation and autoreview workflows before use, because they can perform privileged staff actions or run nested review with broad local access when explicitly invoked.
能力评估
Purpose & Capability
The repo-local skills cover ClawHub moderation, PR maintenance, UI proofing, autoreview, and Convex development workflows; their commands and authority generally match those purposes.
Instruction Scope
Some skills can guide high-impact actions such as user bans, role changes, PR comments, UI proof publishing, and full-access nested code review, but the artifacts disclose these behaviors and include user-targeting, confirmation, dry-run, or auth/audit guardrails.
Install Mechanism
No hidden install hook or covert package execution was identified in the skill artifacts; referenced package installs and CLI setup steps are user-directed workflow steps.
Credentials
The skills assume a ClawHub developer or maintainer environment with repo tools, GitHub CLI, Convex CLI, and optional auth-provider CLIs, which is proportionate for the documented workflows.
Persistence & Privilege
No stealth persistence was found. The autoreview helper defaults nested Codex review to danger-full-access, and moderation commands use authenticated staff APIs, so users should invoke them only in trusted workspaces with appropriate permissions.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cantonese-tts
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cantonese-tts 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Cantonese text-to-speech skill initial release: - Convert Mandarin or Cantonese text to spoken Cantonese in MP3 format. - Automatically adapts Mandarin or written-style input to natural Cantonese expressions and grammar. - Offers four speaking styles: normal, slow (sad/calm), fast (happy/excited), and angry (impatient). - Allows selection of different voices: default HiuMaan (female), HiuGaai (female), or WanLung (male). - Simple CLI usage with clear parameters and examples provided.
元数据
Slug cantonese-tts
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

文转粤语音 - Cantonese TTS 是什么?

将文字转换为粤语语音。输入普通话或粤语文字,自动转换为粤语口吻后生成粤语语音MP3。支持四种语气:normal(普通)、slow(慢速/悲伤)、fast(快速/开心)、angry(生气/急躁)。触发词:粤语语音、广东话语音、文转粤语、文字转粤语、粤语朗读、Cantonese TTS。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 29 次。

如何安装 文转粤语音 - Cantonese TTS?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cantonese-tts」即可一键安装,无需额外配置。

文转粤语音 - Cantonese TTS 是免费的吗?

是的,文转粤语音 - Cantonese TTS 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

文转粤语音 - Cantonese TTS 支持哪些平台?

文转粤语音 - Cantonese TTS 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 文转粤语音 - Cantonese TTS?

由 jimpenn(@jimpenn)开发并维护,当前版本 v1.0.0。

💬 留言讨论