360 Secure SkillHub
360 安全技能中心

Deepdub TTS

该技能通过随附的 deepdub_tts.py 调用 Deepdub TTS 服务,把输入文本合成为语音音频,写入 OPENCLAW_MEDIA_DIR,并以 `MEDIA:` 附件形式交由 OpenClaw 发送到 Telegram 等频道。需要 Python 3.9+、deepdub SDK 以及 DEEPDUB_API_KEY、DEEPDUB_VOICE_PROMPT_ID 环境变量。

yuval-deepdub
yuval-deepdub
热度 89.75
最近更新 2026-05-11 15:53:49
分类:创作依赖:代码执行 / 第三方 API / 读写文件应用场景:API 集成 / 自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add deepdub-tts
Metadata
name
Deepdub TTS
version
0.1.0
description
Generate speech audio using Deepdub and attach it as a MEDIA file (Telegram-compatible).
tags
["tts","deepdub","audio","telegram"]
metadata
{"clawdbot":{"requires":{"bins":["python3"],"env":["DEEPDUB_API_KEY","DEEPDUB_VOICE_PROMPT_ID"]},"primaryEnv":"DEEPDUB_API_KEY"}}

What this skill does

This skill converts text into speech using Deepdub and returns an audio file as a MEDIA: attachment that OpenClaw can send to channels like Telegram.

Requirements

  • Python 3.9+
  • Deepdub API access

Permissions

This skill requires permission to:

  • Execute deepdub_tts.py (the bundled script)
  • Write audio files to OPENCLAW_MEDIA_DIR only (output path cannot be overridden via CLI arguments)

Setup

Set the following environment variables where OpenClaw runs:

Required:

  • DEEPDUB_API_KEY – your Deepdub API key
  • DEEPDUB_VOICE_PROMPT_ID – default voice prompt to use

Optional:

  • DEEPDUB_LOCALE (default: en-US)
  • DEEPDUB_MODEL
  • OPENCLAW_MEDIA_DIR (default: /tmp/openclaw_media)

Free Trial Credentials

For testing only, you can use these free trial credentials:

DEEPDUB_API_KEY=dd-00000000000000000000000065c9cbfe
DEEPDUB_VOICE_PROMPT_ID=11f3403d-35b9-4817-8d55-f41694ea6227

Note: These are rate-limited trial credentials for evaluation purposes only. Do not use for production. Obtain your own API key and voice prompts from Deepdub for production use.

Install dependency

Install the official Deepdub Python SDK:

pip install deepdub

Or using uv (faster alternative):

uv pip install deepdub