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.
モデルを試す
次に何をしますか?
例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
{
"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してください。上のリクエスト例には送信とポーリングが含まれています。
返されたrun 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の対応する画像フィールドでアップロードまたは置換を使用してください。video URLフィールドはホストされたドライビング動画を受け付けますが、動画アップロード対応を意味するものではありません。
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"
}完了したrunの結果は出力に表示されます。以下はモデルに保存されたサンプルであり、新規生成ではありません。
[
{
"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"
}
]