Install
openclaw skills install siliconflow-tts-genText-to-Speech using SiliconFlow API (CosyVoice2). Supports multiple voices, languages, and dialects.
openclaw skills install siliconflow-tts-genText-to-Speech using SiliconFlow API with CosyVoice2 model. Supports 8 preset voices, multiple languages, and Chinese dialects.
SILICONFLOW_API_KEY~/.openclaw/openclaw.json (for auto-detect)npx clawhub install siliconflow-tts-gen
Set your SiliconFlow API key:
export SILICONFLOW_API_KEY="your-api-key"
python3 scripts/generate.py --list-voices
# 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
| ID | Name | Characteristic |
|---|---|---|
| alex | 沉稳男声 | Mature and steady |
| benjamin | 低沉男声 | Deep and low |
| charles | 磁性男声 | Magnetic |
| david | 欢快男声 | Cheerful |
| ID | Name | Characteristic |
|---|---|---|
| anna | 沉稳女声 | Mature and elegant |
| bella | 激情女声 | Passionate |
| claire | 温柔女声 | Gentle and kind |
| diana | 欢快女声 | Sweet and happy |
| 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 |
~/.openclaw/openclaw.json only to auto-detect API keysapi.siliconflow.cnscripts/generate.py before providing credentialsMaxStorm Team
MIT