← 返回
开发者工具 Key 中文

SiliconFlow TTS Gen

Text-to-Speech using SiliconFlow API (CosyVoice2). Supports multiple voices, languages, and dialects.
使用 SiliconFlow API (CosyVoice2) 进行语音合成。支持多种音色、语言及方言。
lilei0311 lilei0311 来源
开发者工具 clawhub v1.0.0 1 版本 99922.2 Key: 需要
★ 0
Stars
📥 1,284
下载
💾 30
安装
1
版本
#cosyvoice#latest#siliconflow#text-to-speech#tts

概述

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

IDNameCharacteristic
--------------------------
alex沉稳男声Mature and steady
benjamin低沉男声Deep and low
charles磁性男声Magnetic
david欢快男声Cheerful

Female Voices

IDNameCharacteristic
--------------------------
anna沉稳女声Mature and elegant
bella激情女声Passionate
claire温柔女声Gentle and kind
diana欢快女声Sweet and happy

Parameters

ParameterTypeDefaultRangeDescription
----------------------------------------------
--voicestringalex-Voice ID
--speedfloat1.00.25-4.0Speech speed
--formatstringmp3mp3/opus/wav/pcmOutput format
--outputstringoutput.mp3-Output file path

Security Notes

  • This skill requires an API key to call SiliconFlow services
  • The script reads ~/.openclaw/openclaw.json only to auto-detect API keys
  • No sensitive data is transmitted except to api.siliconflow.cn
  • Review the code at scripts/generate.py before providing credentials

Author

MaxStorm Team

License

MIT

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 05:23 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 422 📥 115,951
design-media

Openai Whisper

steipete
使用 Whisper CLI 进行本地语音转文字(无需 API 密钥)
★ 329 📥 92,581
design-media

UI/UX Pro Max

xobi667
提供 UI/UX 设计智能与实现指导,帮助打造精美界面。适用于 UI 设计、UX 流程、信息架构、视觉风格、设计系统/标记、组件规格、文案/微文案、无障碍及前端 UI(HTML/CSS/JS、React、Next.js、Vue、Svelte
★ 214 📥 46,216