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 - INLINECODE4 – default voice prompt to use
Optional:
- -
DEEPDUB_LOCALE (default: en-US) - INLINECODE7
- INLINECODE8 (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:
CODEBLOCK1
Or using uv (faster alternative):
CODEBLOCK2
此技能的功能
此技能使用 Deepdub 将文本转换为语音,并返回一个音频文件作为 MEDIA: 附件,OpenClaw 可将其发送到 Telegram 等频道。
要求
- - Python 3.9+
- Deepdub API 访问权限
权限
此技能需要以下权限:
- - 执行 deepdubtts.py(捆绑脚本)
- 仅向 OPENCLAWMEDIA_DIR 写入音频文件(输出路径无法通过 CLI 参数覆盖)
设置
在运行 OpenClaw 的环境中设置以下环境变量:
必需:
- - DEEPDUBAPIKEY – 你的 Deepdub API 密钥
- DEEPDUBVOICEPROMPT_ID – 要使用的默认语音提示
可选:
- - DEEPDUBLOCALE(默认值:en-US)
- DEEPDUBMODEL
- OPENCLAWMEDIADIR(默认值:/tmp/openclaw_media)
免费试用凭证
仅用于测试,你可以使用以下免费试用凭证:
DEEPDUBAPIKEY=dd-00000000000000000000000065c9cbfe
DEEPDUBVOICEPROMPT_ID=11f3403d-35b9-4817-8d55-f41694ea6227
注意: 这些是仅用于评估的限速试用凭证。请勿用于生产环境。如需生产环境使用,请从 Deepdub 获取你自己的 API 密钥和语音提示。
安装依赖项
安装官方 Deepdub Python SDK:
bash
pip install deepdub
或使用 uv(更快的替代方案):
bash
uv pip install deepdub