paki81

Qwen3-tts

設計創意v1.0.0
作者:paki81更新於 2026-05-11qwen-tts@clawhub_paki81/qwen-tts
音訊處理#Text-to-Speech#Audio

據 AlphaMoat 統計,截至 2026-09,Qwen3-tts 累計下載 4,960 次、獲 12 個星標,在全部 5,078 個 AI 技能中排名第 1,860 位,在「設計創意」分類(512 個)中排名第 184 位。

累計安裝
486
累計下載
4960
星標
12
全站排名
#1,860
全站前 37% · 「設計創意」前 36%
平台累計安裝累計下載星標評論
ClawHub ↗15143599-
SkillHub ↗486496012—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

指令碼支援選擇語言與說話聲音,透過指令控制情緒和表達風格,並輸出 WAV 檔案。首次需要安裝依賴和下載模型,之後可在本機離線合成;文件描述了 CPU 或 CUDA 處理方式。 本機檔案可能包含個人或專案資訊;限制工作目錄存取,並在處理前核對所選檔案。

資料釋出於 2026-10-27

可以用來做什麼

  • 完成安裝後無需雲端語音請求即可把準備好的文字轉成語音

什麼時候用

  • 需要本地文字轉語音或語音訊息音訊時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

使用指定語言和聲音,以平靜語氣朗讀這段文字,並儲存 WAV 檔案。

月度資料趨勢

累計下載4960
3321420150812026-03 · 累計下載 34422026-05 · 累計下載 38752026-07 · 累計下載 42182026-08 · 累計下載 43612026-09 · 累計下載 496026-0326-09
星標12
911122026-03 · 星標 92026-05 · 星標 122026-07 · 星標 122026-08 · 星標 122026-09 · 星標 1226-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-094960—12
2026-084361+3.4%12
2026-074218—12
2026-053875—12
2026-033442—9

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

4.5 KB · ClawHub v1.0.0
---
name: qwen-tts
description: Local text-to-speech using Qwen3-TTS-12Hz-1.7B-CustomVoice. Use when generating audio from text, creating voice messages, or when TTS is requested. Supports 10 languages including Italian, 9 premium speaker voices, and instruction-based voice control (emotion, tone, style). Alternative to cloud-based TTS services like ElevenLabs. Runs entirely offline after initial model download.
---

# Qwen TTS

Local text-to-speech using Hugging Face's Qwen3-TTS-12Hz-1.7B-CustomVoice model.

## Quick Start
展開全部(共 167 行)

Generate speech from text:

```bash
scripts/tts.py "Ciao, come va?" -l Italian -o output.wav
```

With voice instruction (emotion/style):

```bash
scripts/tts.py "Sono felice!" -i "Parla con entusiasmo" -l Italian -o happy.wav
```

Different speaker:

```bash
scripts/tts.py "Hello world" -s Ryan -l English -o hello.wav
```

## Installation

**First-time setup** (one-time):

```bash
cd skills/public/qwen-tts
bash scripts/setup.sh
```

This creates a local virtual environment and installs `qwen-tts` package (~500MB).

**Note:** First synthesis downloads ~1.7GB model from Hugging Face automatically.

## Usage

```bash
scripts/tts.py [options] "Text to speak"
```

### Options

- `-o, --output PATH` - Output file path (default: qwen_output.wav)
- `-s, --speaker NAME` - Speaker voice (default: Vivian)
- `-l, --language LANG` - Language (default: Auto)
- `-i, --instruct TEXT` - Voice instruction (emotion, style, tone)
- `--list-speakers` - Show available speakers
- `--model NAME` - Model name (default: CustomVoice 1.7B)

### Examples

**Basic Italian speech:**
```bash
scripts/tts.py "Benvenuto nel futuro del text-to-speech" -l Italian -o welcome.wav
```

**With emotion/instruction:**
```bash
scripts/tts.py "Sono molto felice di vederti!" -i "Parla con entusiasmo e gioia" -l Italian -o happy.wav
```

**Different speaker:**
```bash
scripts/tts.py "Hello, nice to meet you" -s Ryan -l English -o ryan.wav
```

**List available speakers:**
```bash
scripts/tts.py --list-speakers
```

## Available Speakers

The CustomVoice model includes 9 premium voices:

| Speaker | Language | Description |
|---------|----------|-------------|
| Vivian | Chinese | Bright, slightly edgy young female |
| Serena | Chinese | Warm, gentle young female |
| Uncle_Fu | Chinese | Seasoned male, low mellow timbre |
| Dylan | Chinese (Beijing) | Youthful Beijing male, clear |
| Eric | Chinese (Sichuan) | Lively Chengdu male, husky |
| Ryan | English | Dynamic male, rhythmic |
| Aiden | English | Sunny American male |
| Ono_Anna | Japanese | Playful female, light nimble |
| Sohee | Korean | Warm female, rich emotion |

**Recommendation:** Use each speaker's native language for best quality, though all speakers support all 10 languages (Chinese, English, Japanese, Korean, German, French, Russian, Portuguese, Spanish, Italian).

## Voice Instructions

Use `-i, --instruct` to control emotion, tone, and style:

**Italian examples:**
- `"Parla con entusiasmo"`
- `"Tono serio e professionale"`
- `"Voce calma e rilassante"`
- `"Leggi come un narratore"`

**English examples:**
- `"Speak with excitement"`
- `"Very happy and energetic"`
- `"Calm and soothing voice"`
- `"Read like a narrator"`

## Integration with OpenClaw

The script outputs the audio file path to stdout (last line), making it compatible with OpenClaw's TTS workflow:

```bash
# OpenClaw captures the output path
cd skills/public/qwen-tts
OUTPUT=$(scripts/tts.py "Ciao" -s Vivian -l Italian -o /tmp/audio.wav 2>/dev/null)
# OUTPUT = /tmp/audio.wav
```

## Performance

- **GPU (CUDA):** ~1-3 seconds for short phrases
- **CPU:** ~10-30 seconds for short phrases  
- **Model size:** ~1.7GB (auto-downloads on first run)
- **Venv size:** ~500MB (installed dependencies)

## Troubleshooting

**Setup fails:**
```bash
# Ensure Python 3.10-3.12 is available
python3.12 --version

# Re-run setup
cd skills/public/qwen-tts
rm -rf venv
bash scripts/setup.sh
```

**Model download slow/fails:**
```bash
# Use mirror (China mainland)
export HF_ENDPOINT=https://hf-mirror.com
scripts/tts.py "Test" -o test.wav
```

**Out of memory (GPU):**
The model automatically falls back to CPU if GPU memory insufficient.

**Audio quality issues:**
- Try different speaker: `--list-speakers`
- Add instruction: `-i "Speak clearly and slowly"`
- Check language matches text: `-l Italian` for Italian text

## Model Details

- **Model:** Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice
- **Source:** Hugging Face (https://huggingface.co/Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice)
- **License:** Check model card for current license terms
- **Sample Rate:** 16kHz
- **Output Format:** WAV (uncompressed)

「設計創意」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。