← Back to Skills Marketplace
jimpenn

文转粤语音 - Cantonese TTS

by jimpenn · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
29
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install cantonese-tts
Description
将文字转换为粤语语音。输入普通话或粤语文字,自动转换为粤语口吻后生成粤语语音MP3。支持四种语气:normal(普通)、slow(慢速/悲伤)、fast(快速/开心)、angry(生气/急躁)。触发词:粤语语音、广东话语音、文转粤语、文字转粤语、粤语朗读、Cantonese TTS。
README (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
Usage Guidance
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install cantonese-tts
  3. After installation, invoke the skill by name or use /cantonese-tts
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug cantonese-tts
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 文转粤语音 - Cantonese TTS?

将文字转换为粤语语音。输入普通话或粤语文字,自动转换为粤语口吻后生成粤语语音MP3。支持四种语气:normal(普通)、slow(慢速/悲伤)、fast(快速/开心)、angry(生气/急躁)。触发词:粤语语音、广东话语音、文转粤语、文字转粤语、粤语朗读、Cantonese TTS。 It is an AI Agent Skill for Claude Code / OpenClaw, with 29 downloads so far.

How do I install 文转粤语音 - Cantonese TTS?

Run "/install cantonese-tts" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 文转粤语音 - Cantonese TTS free?

Yes, 文转粤语音 - Cantonese TTS is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 文转粤语音 - Cantonese TTS support?

文转粤语音 - Cantonese TTS is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 文转粤语音 - Cantonese TTS?

It is built and maintained by jimpenn (@jimpenn); the current version is v1.0.0.

💬 Comments