跳到正文
TakoAPI
返回技能列表

siliconflow-tts-gen

由 lilei0311 提供

Speech & Transcription
521下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Text-to-Speech using SiliconFlow API (CosyVoice2)

描述

该技能的功能

Converts text to speech using SiliconFlow's CosyVoice2 model. Offers 8 preset voices across 4 languages and 5 Chinese dialects, with 150ms first-packet latency and voice cloning from 3-second samples.

CosyVoice2 via SiliconFlow provides native Chinese dialect support that most TTS APIs lack, including Cantonese, Sichuan, and Shanghainese.

何时使用

  • Generating voiceovers for short videos in Mandarin or Cantonese
  • Creating audio versions of written content in multiple languages
  • Prototyping voice UI responses with different character tones
  • Batch-generating narration files for e-learning materials
  • Cloning a specific voice for consistent branded audio output

示例工作流

输入

User asks: generate an MP3 of 'Welcome to our service' in a gentle female voice at 0.9x speed

智能体
  1. 1

    Reads SILICONFLOW_API_KEY from environment

  2. 2

    Calls SiliconFlow TTS API with voice set to claire and speed 0.9

  3. 3

    Receives audio stream with ~150ms first-packet delay

  4. 4

    Writes response to output.mp3 locally

输出

output.mp3 saved to current directory with claire voice at 0.9x speed

前置要求

  • SILICONFLOW_API_KEY environment variable
  • SiliconFlow account to obtain API key

安装

clawhub install lilei0311/siliconflow-tts-gen

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接