Tool v1.0.0

aliyun-tts

阿里云语音合成服务

ClawHub 更新于 2026-03-24 12 浏览
下载 SKILL

技能说明

阿里云语音合成服务

使用场景

Alibaba Cloud converts text to natural-sounding speech for audio applications

查看英文原始说明

Alibaba Cloud Text-to-Speech synthesis service.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/aliyun-tts
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 15 kB · zip 8.0 kB
手动下载 zip · 8.0 kB
SKILL.md text/markdown
---
name: aliyun-tts
description: Alibaba Cloud Text-to-Speech synthesis service.
metadata: {"clawdbot":{"emoji":"🔊"}}
---

# aliyun-tts

Alibaba Cloud Text-to-Speech synthesis service.

## Configuration

Set the following environment variables:
- `ALIYUN_APP_KEY` - Application Key
- `ALIYUN_ACCESS_KEY_ID` - Access Key ID
- `ALIYUN_ACCESS_KEY_SECRET` - Access Key Secret (sensitive)

### Option 1: CLI configuration (recommended)

```bash
# Configure App Key
clawdbot skills config aliyun-tts ALIYUN_APP_KEY "your-app-key"

# Configure Access Key ID
clawdbot skills config aliyun-tts ALIYUN_ACCESS_KEY_ID "your-access-key-id"

# Configure Access Key Secret (sensitive)
clawdbot skills config aliyun-tts ALIYUN_ACCESS_KEY_SECRET "your-access-key-secret"
```

### Option 2: Manual configuration

Edit `~/.clawdbot/clawdbot.json`:

```json5
{
  skills: {
    entries: {
      "aliyun-tts": {
        env: {
          ALIYUN_APP_KEY: "your-app-key",
          ALIYUN_ACCESS_KEY_ID: "your-access-key-id",
          ALIYUN_ACCESS_KEY_SECRET: "your-access-key-secret"
        }
      }
    }
  }
}
```

## Usage

```bash
# Basic usage
{baseDir}/bin/aliyun-tts "Hello, this is Aliyun TTS"

# Specify output file
{baseDir}/bin/aliyun-tts -o /tmp/voice.mp3 "Hello"

# Specify voice
{baseDir}/bin/aliyun-tts -v siyue "Use siyue voice"

# Specify format and sample rate
{baseDir}/bin/aliyun-tts -f mp3 -r 16000 "Audio parameters"
```

## Options

| Flag | Description | Default |
|------|-------------|---------|
| `-o, --output` | Output file path | tts.mp3 |
| `-v, --voice` | Voice name | siyue |
| `-f, --format` | Audio format | mp3 |
| `-r, --sample-rate` | Sample rate | 16000 |

## Available Voices

Common voices: `siyue`, `xiaoxuan`, `xiaoyun`, etc. See Alibaba Cloud documentation for the full list.

## Chat Voice Replies

When a user requests a voice reply:

```bash
# Generate audio
{baseDir}/bin/aliyun-tts -o /tmp/voice-reply.mp3 "Your reply content"

# Include in your response:
# MEDIA:/tmp/voice-reply.mp3
```

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。