通过 dy-caption 服务把抖音视频里的语音转成文字。
> 注意:本技能会将抖音分享链接 / 分享文案 与 API Key 发送到 dy-caption 服务,请确认你信任该服务后再使用。
调用接口前需要先准备 API Key:
export DY_CAPTION_API_KEY="你的 API Key"
# 提交转写任务
curl -X POST https://api.dycaption.cn/api/v1/transcribe \
-H "X-API-Key: $DY_CAPTION_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":"7.53 复制打开抖音,看看【示例】 https://v.douyin.com/xxxx/"}'
# 查询余额
curl -X GET https://api.dycaption.cn/api/v1/credits \
-H "X-API-Key: $DY_CAPTION_API_KEY"
# 查询历史
curl -X GET https://api.dycaption.cn/api/v1/history \
-H "X-API-Key: $DY_CAPTION_API_KEY"
/api/v1/transcribetaskId/api/v1/transcribe/:taskIdtext共 1 个版本