Search

PythonReactSEOPDF
OpenClaw

volcengine-ai-audio-tts

Text-to-speech generation on Volcengine (ByteDance) speech services. Use when users need narration, multi-language speech output, voice selection, or TTS troubleshooting. Supports online one-shot HTTP API (openspeech.bytedance.com).

day2530 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install day253/day253-volcengine-ai-audio-tts

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

Category: provider

Volcengine 语音合成 TTS

Validation

mkdir -p output/volcengine-ai-audio-tts
python -m py_compile skills/ai/audio/volcengine-ai-audio-tts/scripts/generate_tts.py && echo "py_compile_ok" > output/volcengine-ai-audio-tts/validate.txt

Pass criteria: command exits 0 and output/volcengine-ai-audio-tts/validate.txt is generated.

Output And Evidence

  • Save generated audio files, request payloads, and response metadata to output/volcengine-ai-audio-tts/.
  • Keep one validation log per execution.

Prerequisites

  • Python 3.8+. No extra SDK required (uses requests and stdlib).
  • Install: pip install requests
  • Set environment variables (from Volcengine 豆包语音控制台):
    • VOLCENGINE_TTS_APP_ID — 应用 ID
    • VOLCENGINE_TTS_TOKEN — 应用 Token(用于 Authorization: Bearer;${token})
    • VOLCENGINE_TTS_CLUSTER — 业务集群,如 volcano_tts(标准音色)

Optional: use .env in repo root or script directory; script will load them.

Normalized interface (tts.generate)

Request
  • text (string, required) — 合成文本,UTF-8,单次建议 ≤1024 字节
  • voice_type (string, required) — 音色,见 发音人参数列表,如 BV700_streaming
  • encoding (string, optional) — 编码格式:pcm | wav | mp3 | ogg_opus,默认 mp3
  • rate (int, optional) — 采样率 8000/16000/24000,默认 24000
  • speed_ratio (float, optional) — 语速 [0.2, 3],默认 1.0
  • volume_ratio (float, optional) — 音量 [0.1, 3],默认 1.0
  • pitch_ratio (float, optional) — 音高 [0.1, 3],默认 1.0
  • language (string, optional) — 语言,如 cn
Response
  • audio_path (string) — 本地保存的音频文件路径
  • sample_rate (int)
  • format (string)
  • duration_ms (string, when returned by API)
  • code (int) — 3000 表示成功

Quick start (Python script)

# 使用内联 JSON 请求
python skills/ai/audio/volcengine-ai-audio-tts/scripts/generate_tts.py \
  --request '{"text":"你好,这是一段测试语音。","voice_type":"BV...

Source information

Source
github
Repository
openclaw/skills
Path
skills/day253/day253-volcengine-ai-audio-tts
Version
—
Commit
dc72894d786e7824da85ed88012fd60fcd826332
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
Category: provider

# Volcengine 语音合成 TTS

## Validation

```bash
mkdir -p output/volcengine-ai-audio-tts
python -m py_compile skills/ai/audio/volcengine-ai-audio-tts/scripts/generate_tts.py && echo "py_compile_ok" > output/volcengine-ai-audio-tts/validate.txt
```

Pass criteria: command exits 0 and `output/volcengine-ai-audio-tts/validate.txt` is generated.

## Output And Evidence

- Save generated audio files, request payloads, and response metadata to `output/volcengine-ai-audio-tts/`.
- Keep one validation log per execution.

## Prerequisites

- Python 3.8+. No extra SDK required (uses `requests` and stdlib).
- Install: `pip install requests`
- Set environment variables (from Volcengine 豆包语音控制台):
  - `VOLCENGINE_TTS_APP_ID` — 应用 ID
  - `VOLCENGINE_TTS_TOKEN` — 应用 Token(用于 Authorization: Bearer;${token})
  - `VOLCENGINE_TTS_CLUSTER` — 业务集群,如 `volcano_tts`(标准音色)

Optional: use `.env` in repo root or script directory; script will load them.

## Normalized interface (tts.generate)

### Request
- `text` (string, required) — 合成文本,UTF-8,单次建议 ≤1024 字节
- `voice_type` (string, required) — 音色,见 [发音人参数列表](https://www.volcengine.com/docs/6561/79824),如 `BV700_streaming`
- `encoding` (string, optional) — 编码格式:`pcm` | `wav` | `mp3` | `ogg_opus`,默认 `mp3`
- `rate` (int, optional) — 采样率 8000/16000/24000,默认 24000
- `speed_ratio` (float, optional) — 语速 [0.2, 3],默认 1.0
- `volume_ratio` (float, optional) — 音量 [0.1, 3],默认 1.0
- `pitch_ratio` (float, optional) — 音高 [0.1, 3],默认 1.0
- `language` (string, optional) — 语言,如 `cn`

### Response
- `audio_path` (string) — 本地保存的音频文件路径
- `sample_rate` (int)
- `format` (string)
- `duration_ms` (string, when returned by API)
- `code` (int) — 3000 表示成功

## Quick start (Python script)

```bash
# 使用内联 JSON 请求
python skills/ai/audio/volcengine-ai-audio-tts/scripts/generate_tts.py \
  --request '{"text":"你好,这是一段测试语音。","voice_type":"BV...

Related skills

OpenClaw

humanpages

human-pages-ai

Search and hire real humans for tasks — photography, delivery, research, and more

OpenClaw

openclaw-skills

zseven-w

Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.

OpenClaw

0xarchive

0xfantommenace

Query historical crypto market data from 0xArchive across Hyperliquid, Lighter.xyz, and HIP-3. Covers orderbooks, trades, candles, funding rates, open interest, liquidations, and data quality. Use when the user...

OpenClaw

1sec-security

cutmob

Install, configure, and manage 1-SEC — an open-source, all-in-one cybersecurity platform (16 modules, single binary) on Linux servers and VPS instances. Use when the user asks to secure a server, install securi...