GET
/
首页 HTML 文档。公开可访问。
输入公开视频或音频 URL,异步产出原文全文、原文段级时间戳、原文词级时间戳、译文全文、译文段级时间戳,以及全部产物在火山 TOS 上的对象路径。
/
首页 HTML 文档。公开可访问。
/api/transcripts
JSON 文档入口。需要鉴权。
/api/transcripts/health
健康检查。需要鉴权。
/api/transcripts/jobs
提交转录与翻译任务,立即返回 jobId。
/api/transcripts/jobs/{jobId}
查询任务状态和结果。
{
"url": "https://example.com/demo.mp3",
"sourceLanguage": "auto",
"targetLanguage": "zh",
"metadata": {
"project": "launch-video",
"sourceType": "podcast"
}
}
{
"ok": true,
"job": {
"jobId": "job_xxxxxxxxxxxx",
"status": "succeeded",
"sourceUrl": "https://example.com/demo.mp3",
"sourceLanguage": "auto",
"targetLanguage": "zh",
"sourceTranscriptText": "...",
"sourceSegments": [],
"sourceWords": [],
"translatedTranscriptText": "...",
"translatedSegments": [],
"artifacts": [
{
"kind": "source_audio",
"filename": "source.mp3",
"path": "tos://transcript-service/job_xxx/source_audio/source.mp3",
"contentType": "audio/mpeg"
}
],
"metadata": {
"project": "launch-video"
}
}
}
sourceWords 是原文词级时间戳。translatedSegments 是复用原文时间轴后的译文段级时间戳。artifacts[].path 返回的是 TOS 对象路径,由调用方自己决定后续下载、分发或缓存策略。