videostring必填
Source video with Chinese or English speech (mp4 or mov, 4-360 s, 12-60 fps, up to 200 MB).
bytedance/seed-audio/1.5/video-translationSeed Audio 1.5 Video Translation by ByteDance translates Chinese or English speech in a video into one of 30 languages and returns the dubbed video, the dubbed audio track, and target and source subtitles, keeping the original timing and voice.
试用该模型
下一步想做什么?
选择一个示例,将其输入和结果加载到 playground 中。
{
"target_language": "es-ES",
"video": "https://static.sandbase.ai/examples/e78354ab-8789-47c1-95db-ad648bb9eaaf/input/b6620cc0-4b46-46e6-9165-76ae63bcb22e.mp4"
}{
"dialogue_enhancement": "medium",
"glossaries": [
{
"source": "OmniHuman",
"target": "OmniHuman"
}
],
"target_language": "ja",
"video": "https://static.sandbase.ai/examples/61558c72-966a-46d6-844e-06b3550f9f3c/input/6b559b19-aa43-48f7-a24f-a62d781e4015.mp4"
}Seed Audio 1.5 Video Translation by ByteDance translates Chinese or English speech in a video into one of 30 languages and returns the dubbed video, the dubbed audio track, and target and source subtitles, keeping the original timing and voice.
| Field | Type | Default | Notes |
|---|---|---|---|
video | file or URL, required | — | Input video file or URL. |
target_language | zh / en / ja / ko / de / fr / pt-BR / th / id / vi / ms / fil / it / ru / nl / pl / tr / sv / es-ES / es-MX / ar / pt-PT / fi / da / no / cs / hu / el / ro / hi, required | — | Language to dub into. |
subtitle | string | — | Target-language SRT URL; skips machine translation. |
glossaries | array | — | {source, target} term pairs. |
dialogue_enhancement | offlowmediumhigh | off | Dialogue enhancement level. |
output_format | mp3wavpcmogg_opus | mp3 | Output audio format. |
sample_rate | 80001600024000320004410048000 | — | Output sample rate in Hz; unset means 44100 (48000 for ogg_opus). |
$0.90 per minute of input video, prorated by the second. Target language, glossaries, subtitles, and audio format do not change the price. The estimate before the run assumes 1 minute if the video length cannot be read.
| Input video | Price |
|---|---|
| 10 s | $0.15 |
| 1 min | $0.90 |
| 6 min | $5.40 |
Failed runs are not charged.
Related:
开始构建
通过 SandBase Unified Run API 提交此模型。
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "bytedance/seed-audio/1.5/video-translation",
"video": "https://storage.googleapis.com/falserverless/example_outputs/omnihuman_output.mp4",
"output_format": "mp3",
"target_language": "es-ES",
"dialogue_enhancement": "off"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"创建一个 SandBase API 密钥,并将其设置到服务器环境中。所有请求都使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它,也不要提交到仓库。
使用此模型 ID 及其输入向 /v1/run 发送 POST 请求。上方的请求示例包含提交和轮询。
使用返回的运行 ID 轮询,直到状态为 completed、failed 或 timeout。仅在 completed 后读取输出。
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"在模型的 image、video 或 audio 字段中传入一个可公开访问的文件 URL。支持的格式和限制显示在每个 Playground 输入项旁边。
在 Playground 中支持的图片字段上使用上传或替换控件。视频 URL 字段接受托管的 driving video;这并不表示支持视频上传。
videostring必填Source video with Chinese or English speech (mp4 or mov, 4-360 s, 12-60 fps, up to 200 MB).
subtitlestringOptional UTF-8 SRT subtitle file URL in the target language. When provided, machine translation is skipped and the video is dubbed from these subtitles (each segment at most 15 s). Cannot be combined with glossaries.
glossariesarrayFixed translations for specific terms, as {source, target} pairs. Cannot be combined with subtitle.
sample_rateintegerSample rate of the output audio in Hz. Leave unset for 44100 (48000 for ogg_opus, the only rate ogg_opus supports).
可选值:8000, 16000, 24000, 32000, 44100, 48000
output_formatstringOutput audio format.
默认值:"mp3"
可选值:"mp3", "wav", "pcm", "ogg_opus"
target_languagestring必填Language to dub the video into.
可选值:"zh", "en", "ja", "ko", "de", "fr", "pt-BR", "th", "id", "vi", "ms", "fil", "it", "ru", "nl", "pl", "tr", "sv", "es-ES", "es-MX", "ar", "pt-PT", "fi", "da", "no", "cs", "hu", "el", "ro", "hi"
dialogue_enhancementstringDialogue enhancement level applied to the dubbed audio.
默认值:"off"
可选值:"off", "low", "medium", "high"
{
"model": "bytedance/seed-audio/1.5/video-translation",
"video": "https://storage.googleapis.com/falserverless/example_outputs/omnihuman_output.mp4",
"output_format": "mp3",
"target_language": "es-ES",
"dialogue_enhancement": "off"
}已完成的运行会在输出中展示结果。以下内容是该模型保存的示例,而不是新的生成结果。
[
{
"audio_url": "https://static.sandbase.ai/examples/e78354ab-8789-47c1-95db-ad648bb9eaaf/output/d41bb325-e3ad-4ac2-8f43-401168ee697e.mp3",
"source_subtitles_url": "https://static.sandbase.ai/examples/e78354ab-8789-47c1-95db-ad648bb9eaaf/output/efd72d7f-89b1-4820-8b25-86cd4e3fa0dd.bin",
"subtitles_url": "https://static.sandbase.ai/examples/e78354ab-8789-47c1-95db-ad648bb9eaaf/output/0d6dcebe-fd01-4408-979d-a74aba09e6a6.bin",
"url": "https://static.sandbase.ai/examples/e78354ab-8789-47c1-95db-ad648bb9eaaf/output/a82e7987-cab1-4e83-a548-7f4d98fb0519.mp4"
}
]