Xpersona
C

chinese-voice-skill

CLAWHUB · Unverified

使用微软 Edge TTS 生成高质量中文语音,默认使用 XiaoxiaoNeural 语音。当用户需要语音回复时自动触发。 Skill: chinese-voice-skill Owner: nufeng1999 Summary: 使用微软 Edge TTS 生成高质量中文语音,默认使用 XiaoxiaoNeural 语音。当用户需要语音回复时自动触发。 Tags: latest:1.0.4 Version history: v1.0.4 | 2026-03-29T09:58:12.468Z | user - 更新 QQ 语音输出标签,由 <qqvoice> 更改为 <qqmedia>。 - 相关示例与说明同步为新标签格式,提升平台适配性。 - 无其他功能性变更。 v1.0.3 | 2026-03-29T09:55:13.981Z | user Version 1.0.3 of Chinese Voice Skill - No file changes detected; this is a metadata version update only.

62
Rank
84
Safety
1.5k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.5K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s176y53b9fw2rmde0nkf86t7v983h5c2:chinese-voice-skill
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-nufeng1999-chinese-voice-skill/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

40,103 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: Chinese Voice Skill
description: 使用微软 Edge TTS 生成高质量中文语音,默认使用 XiaoxiaoNeural 语音。当用户需要语音回复时自动触发。
read_when:
  - 生成中文语音
  - 创建语音回复
  - 使用 TTS 合成语音
  - 需要语音回复
  - 中文语音对话
  - edge-tts 语音生成
  - 语音对话
  - TTS 转换
  - 发送语音
  - 语音合成
  - 开启语音
  - 开始语音
  - 用语音回复
metadata: {"clawdbot":{"emoji":"🎤","priority":10,"requires":{"bins":["python","pip"]}}}
allowed-tools: Bash(edge-tts:*)
---

# Edge TTS 中文语音合成技能

## 概述

使用微软 Edge TTS 生成高质量中文语音,默认使用 XiaoxiaoNeural 语音。当用户需要语音回复时自动触发。

## 能力

- **语音合成**: 将文本转换为高质量的中文语音
- **默认语音**: zh-CN-XiaoxiaoNeural(甜美自然的中文语音)
- **备用方案**: 当 edge-tts 不可用时,自动降级到系统自带的 System.Speech
- **平台支持**:
  - ✅ QQ 发送(<qqmedia> wav 格式)

## 使用方式

### 基本用法

当用户表达需要语音回复时(如"生成语音"、"用语音告诉我"、"用语音说"),系统会自动:

1. 检测 edge-tts 是否可用
2. 使用 Edge TTS + XiaoxiaoNeural 生成语音
3. 发送 `<qqmedia>输出文件.wav</qqmedia>`

### 前置条件

1. **Python 3.7+** 已安装(用于运行 edge-tts)
2. **pip** 可用
3. **QQ 通道** 已配置(用于发送 wav 格式语音)

## 配置选项

### 语音选择

- 默认: `zh-CN-XiaoxiaoNeural`
- 其他可选微软语音:
  - `zh-CN-YunxiNeural`(沉稳)
  - `zh-CN-XiaoyiNeural`(温柔)
  - `zh-CN-YunyangNeural`(磁性)

### 语音参数

- `Rate`: 语速(默认 0,可调整 -5 到 5)
- `Volume`: 音量(默认 1.0,范围 0 到 1)

## 技术实现

### 命令行调用

使用 Python 的 edge_tts 模块:

```bash
python -m edge_tts --voice "zh-CN-XiaoxiaoNeural" --text "要转换的文本" --write-media "输出文件.wav"
```

### 安装 edge-tts

如果未安装,使用 pip 安装:

```bash
pip install --user edge-tts -i https://mirrors.aliyun.com/pypi/simple/
```

### 备用语音方案

如果 edge-tts 不可用,系统会自动使用系统自带的中文 TTS。

## 输出格式

- **文件格式**: WAV(微软 TTS 标准格式)
- **采样率**: 24000 Hz
- **声道**: 单声道
- **位深度**: 16-bit

## 注意事项

1. **网络要求**: edge-tts 需要访问微软服务器
2. **文件大小**: 生成的语音文件通常在 50-200 KB
3. **自动清理**: 临时文件可能由系统自动清理
4. **备用方案**: 当 edge-tts 不可用时自动降级,不影响基本功能

## 示例

```
用户: 生成语音,"你好!这是一段测试文本。"

AI: [调用 edge-tts 生成语音]
[发送 <qqmedia>C:\Users\ADMINI~1\AppData\Local\Temp\xxx.wav</qqmedia>]
[提示语音生成完成]
```

## 故障排除

### edge-tts 未安装

使用 pip 安装 edge-tts:

```bash
pip install --user edge-tts -i https://mirrors.aliyun.com/pypi/simple/
```

### edge-tts 路径问题

检查 edge-tts 是否在 PATH 中:

```powershell
Get-Command edge-tts.exe -ErrorAction SilentlyContinue
```

### 语音未生成

1. 检查网络连接
2. 查看错误信息
3. 确认 QQ 通道已配置
4. 确认 ffmpeg 已安装(如需转换格式)

_meta.json

{
  "ownerId": "kn78tpnrwtfvbsqdzjzfsd866982xe4q",
  "slug": "chinese-voice-skill",
  "version": "1.0.4",
  "publishedAt": 1774778292468
}

skill-card.md

## Description:

使用微软 Edge TTS 生成高质量中文语音,默认使用 XiaoxiaoNeural 语音。当用户需要语音回复时自动触发。

This skill is ready for commercial/non-commercial use.

## Publisher:

[nufeng1999](https://clawhub.ai/user/nufeng1999)

### License/Terms of Use:

MIT-0

## Use Case:

External users and agent operators use this skill to turn Chinese text responses into Microsoft Edge TTS voice output for QQ media delivery.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Text provided for voice generation may be sent to Microsoft TTS services.

Mitigation: Use the skill only for content that may be processed by the external TTS service.

Risk: The documented edge-tts installation command uses an unpinned user-level install from a third-party package mirror.

Mitigation: Install edge-tts in an isolated environment from a trusted, pinned package source before use.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/nufeng1999/skills/chinese-voice-skill)

## Skill Output:

**Output Type(s):** [Text, Shell commands, Configuration, Audio file references]

**Output Format:** [Markdown with qqmedia audio-file tags and inline shell commands]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Produces WAV voice media using Chinese Microsoft Edge TTS voices when edge-tts is available.]

## Skill Version(s):

1.0.4 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

.clawhub/origin.json

{
  "version": 1,
  "registry": "https://clawhub.ai",
  "slug": "chinese-voice-skill",
  "installedVersion": "1.0.2",
  "installedAt": 1773638401669
}

Sponsored

Ads related to chinese-voice-skill and adjacent AI workflows.