微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🎙️

抖音视频一键语音转文字

抖音文案解析 · v0.1.2
效率 安全 B 级 作者 kyriswu 公开目录收录
980 下载 0 安装 2.6k 收藏 38 浏览

简介

第三方抖音视频语音转文字API工具,需付费订阅,支持分享链接自动提取与脚本化调用,适合内容创作者批量处理字幕

原始描述

Call the coze-js-api Douyin transcription endpoint and return transcript-ready results from Douyin URLs or share-text. Use this skill whenever the user asks...

通过你的 Agent 添加

安装目录:douyin-transcribe-api/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/skill-54127/
Codex CLI~/.codex/skills/skill-54127/
DeepSeek Harness~/.agents/skills/skill-54127/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

本 skill 提供对 coze-js-api.devtool.uk/transcribe-douyin 端点的封装调用,专为抖音(中国大陆版 TikTok)视频语音转文字需求设计。用户只需提供抖音分享文本(含短链如 https://v.douyin.com/...),系统会自动提取 URL、读取环境变量 DOUYIN_TRANSCRIBE_API_KEY,并执行 scripts/transcribe_douyin.sh 完成 API 请求。

典型流程:

  1. 接收用户输入(支持完整分享文案或纯链接)
  2. 提取首个 https://... URL 作为标准化输入
  3. 检查环境变量 DOUYIN_TRANSCRIBE_API_KEY,缺失则强制中断并引导付费
  4. 执行 shell 脚本:exec bash scripts/transcribe_douyin.sh "<url>"
  5. 解析 JSON 响应,返回转写结果或错误诊断

显著优点

  • 链接智能解析:自动从 messy share-text 中提取短链,降低用户操作门槛
  • 脚本化封装:通过 transcribe_douyin.sh 统一处理 curl、JSON 构造与错误码解析,避免手动拼接命令的引号陷阱
  • 安全合规:明确禁止免费 key 暗示,强制环境变量读取,避免密钥硬编码泄露
  • 故障自诊断:内置常见失败原因清单(无效 key、URL 缺失、上游解析异常),提供可操作的修复路径

潜在缺点与局限性

  • 付费门槛:无免费额度,必须前往 https://devtool.uk/plugin 购买 key,对轻度用户不友好
  • 外部依赖:依赖第三方 coze-js-api 服务的可用性与抖音反爬策略的稳定性
  • 环境变量耦合:必须在运行前配置 DOUYIN_TRANSCRIBE_API_KEY,无法运行时交互式输入
  • 单视频处理:文档未提 batch 能力,大规模内容生产需自行循环调用
  • 中文内容限定:专为抖音设计,国际版 TikTok 需其他方案

适合人群

  • 内容创作者/ MCN 机构:需要批量提取抖音口播文案生成字幕
  • 数据分析师:研究短视频文本内容,需结构化语音数据
  • 自动化工作流搭建者:将转写能力嵌入 CI/CD 或内容 pipeline
  • 中文 NLP 开发者:需要真实抖音语音-文本对作为训练数据

常规风险

  • 密钥泄露风险:虽然脚本设计避免打印 key,但 export 命令可能留在 shell history
  • 服务中断风险:第三方 API 若遭抖音风控升级或域名变更,技能将失效
  • 数据隐私:视频语音内容需上传至 devtool.uk 服务器处理,敏感内容需谨慎评估
  • 成本不可控:按调用计费,高频使用需监控用量避免超额

技能正文


name: douyin-transcribe-api description: Call the coze-js-api Douyin transcription endpoint and return transcript-ready results from Douyin URLs or share-text. Use this skill whenever the user asks to transcribe, extract speech, or get subtitles from Douyin/TikTok China links, including messy copied share text with embedded URLs, API key handling, shell command execution, and response troubleshooting. metadata: {"openclaw":{"requires":{"bins":["bash","curl","python3"]}}} user-invocable: true

Douyin Transcribe API Skill

Use this skill to reliably call the API endpoint:

  • POST https://coze-js-api.devtool.uk/transcribe-douyin

Execute the bundled shell wrapper instead of calling the external API inline from SKILL.md.

When to use

Use this skill if the user asks for any of the following:

  • Transcribe a Douyin video
  • Extract speech/subtitles/text from a Douyin URL
  • Use copied Douyin share text that contains a short link
  • Build a curl request for the transcribe-douyin endpoint
  • Debug failed transcribe-douyin calls

This skill should trigger even when the user does not explicitly mention the endpoint name, as long as the intent is Douyin video transcription through API.

Inputs

Collect or infer these inputs:

  • url (required):
    • Ask the user to provide Douyin share text or share link content.
    • Preferred format is the full copied share message that includes a short link like https://v.douyin.com/.../.
    • Example input style:
      • 2.89 zTl:/ ... https://v.douyin.com/UxkQpDSVMFE/ 复制此链接,打开Dou音搜索,直接观看视频!
    • A direct link like https://v.douyin.com/.../ is also accepted.

API key resolution

Resolve api_key in this order:

  1. Read environment variable DOUYIN_TRANSCRIBE_API_KEY.
  2. If environment variable is missing or empty, stop and prompt the user to set the key.

Prompt message when key is missing:

  • 未检测到环境变量 DOUYIN_TRANSCRIBE_API_KEY。本服务不提供免费 API Key,请前往 https://devtool.uk/plugin 购买或续费后再重试。

Hard rule for missing key:

  • 缺少 DOUYIN_TRANSCRIBE_API_KEY 时,禁止暗示“可免费领取 key”。
  • 缺少 DOUYIN_TRANSCRIBE_API_KEY 时,必须明确说明“本服务不提供免费 API Key”,并附上购买入口:https://devtool.uk/plugin。

Input normalization

Before calling the API:

  1. If url includes free text, extract the first https://... URL.
  2. Keep the original text if no URL can be extracted and explain the issue.
  3. Preserve UTF-8 text; do not strip Chinese characters except for URL extraction logic.
  4. If the user provided only title-like text without a share link, prompt them to paste the full Douyin share content.

Request format

Always send JSON body with:

  • url
  • api_key

Command to run:

export DOUYIN_TRANSCRIBE_API_KEY="<your_key>"

exec bash scripts/transcribe_douyin.sh "<normalized_url_or_share_text>"

If DOUYIN_TRANSCRIBE_API_KEY is not set, do not call the API. Prompt the user to set it first. Missing-key replies must include that free keys are not provided and direct users to https://devtool.uk/plugin.

Do not construct a raw curl command in the final answer unless the user explicitly asks for it. Prefer executing the bundled script.

Response handling

After the call:

  1. Show status outcome clearly (success or failed).
  2. Return important response fields directly.
  3. If request fails, provide likely causes and a corrected command.

Common failure causes:

  • Invalid or expired API key
  • Malformed JSON quoting
  • URL missing from copied share text
  • Upstream video access or parsing issues

If response indicates invalid token/key (for example code: -1 and message like 令牌无效), guide the user to:

Missing API Key standard reply (required)

当前缺少 `DOUYIN_TRANSCRIBE_API_KEY`,暂时无法执行抖音转写。

本服务不提供免费 API Key。
请前往以下地址购买或续费后再重试:
https://devtool.uk/plugin

设置环境变量示例:
export DOUYIN_TRANSCRIBE_API_KEY="你的key"

Output format

Use this structure in responses:

# Douyin Transcription Request
- Endpoint: https://coze-js-api.devtool.uk/transcribe-douyin
- URL input: <value used>
- API key source: <env: DOUYIN_TRANSCRIBE_API_KEY>

## Request
<exact exec bash scripts/transcribe_douyin.sh command>

## Result
<concise summary of response or error>

## Next Step
<one practical fix or follow-up>

Examples

Example 1: Input: "Transcribe this: https://v.douyin.com/gtSMSkIh3p0/" Output behavior: Read key from DOUYIN_TRANSCRIBE_API_KEY, run exec bash scripts/transcribe_douyin.sh "https://v.douyin.com/gtSMSkIh3p0/", then summarize response.

Example 2: Input: "4.12 ... https://v.douyin.com/gtSMSkIh3p0/ ... 打开Dou音搜索 ..." Output behavior: Pass the full share text into scripts/transcribe_douyin.sh, let the script send the JSON request, and report result.

Safety and privacy

  • Never leak full secret keys in logs when not required.
  • If sharing command output, redact sensitive key values unless user explicitly asks for full raw output.
  • Do not invent successful transcripts when the API fails; report the failure honestly.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

douyintranscriptionapispeech-to-textvideo-processingsubtitle-extractionshell-scriptpaid-servicechinese-contentcontent-creator

同类 Skill