SiliconFlow TTS Generation Skill
Text-to-Speech using SiliconFlow API with CosyVoice2 model. Supports 8 preset voices, multiple languages, and Chinese dialects.
Features
- ποΈ 8 Preset Voices: 4 male + 4 female voices
- π Multilingual: Chinese, English, Japanese, Korean
- π£οΈ Chinese Dialects: Cantonese, Sichuan, Shanghai, Tianjin, Wuhan
- β‘ Ultra Low Latency: 150ms first packet delay
- π΅ Voice Cloning: 3-second rapid voice cloning
- πΎ Auto Download: Saves audio files locally
Requirements
- Environment Variable:
SILICONFLOW_API_KEY - Optional Config File:
~/.openclaw/openclaw.json(for auto-detect)
Installation
npx clawhub install siliconflow-tts-gen
Configuration
Set your SiliconFlow API key:
export SILICONFLOW_API_KEY="your-api-key"
Usage
List Available Voices
python3 scripts/generate.py --list-voices
Generate Speech
# Basic usage (default voice: alex)
python3 scripts/generate.py "δ½ ε₯½οΌδΈη"
# Specify voice
python3 scripts/generate.py "Hello World" --voice bella
# Adjust speed
python3 scripts/generate.py "δ½ ε₯½" --voice claire --speed 0.9
# Save to file
python3 scripts/generate.py "ζ¬’θΏζΆε¬" --output welcome.mp3
# Change format
python3 scripts/generate.py "Hello" --format wav
Available Voices
Male Voices
| ID | Name | Characteristic |
|---|---|---|
| alex | ζ²η¨³η·ε£° | Mature and steady |
| benjamin | δ½ζ²η·ε£° | Deep and low |
| charles | η£ζ§η·ε£° | Magnetic |
| david | ζ¬’εΏ«η·ε£° | Cheerful |
Female Voices
| ID | Name | Characteristic |
|---|---|---|
| anna | ζ²η¨³ε₯³ε£° | Mature and elegant |
| bella | ζΏζ ε₯³ε£° | Passionate |
| claire | ζΈ©ζε₯³ε£° | Gentle and kind |
| diana | ζ¬’εΏ«ε₯³ε£° | Sweet and happy |
Parameters
| Parameter | Type | Default | Range | Description |
|---|---|---|---|---|
--voice | string | alex | - | Voice ID |
--speed | float | 1.0 | 0.25-4.0 | Speech speed |
--format | string | mp3 | mp3/opus/wav/pcm | Output format |
--output | string | output.mp3 | - | Output file path |
Security Notes
- This skill requires an API key to call SiliconFlow services
- The script reads
~/.openclaw/openclaw.jsononly to auto-detect API keys - No sensitive data is transmitted except to
api.siliconflow.cn - Review the code at
scripts/generate.pybefore providing credentials
Author
MaxStorm Team
License
MIT






