revert: restore storyboard intake workflow

This commit is contained in:
2026-05-19 16:17:58 +08:00
parent a7aa280330
commit b9ba8113f0
6 changed files with 55 additions and 260 deletions

View File

@@ -1044,25 +1044,6 @@ export async function triggerTranscribe(id: string): Promise<Job> {
return res.json()
}
export async function updateAudioScript(
id: string,
body: Partial<Pick<AudioScript,
"source_text" | "source_zh" | "rewritten_text" | "rewritten_text_zh" |
"speaker_profile" | "rhythm_profile" | "background_audio_profile"
>>,
): Promise<Job> {
const res = await fetch(`${API_BASE}/jobs/${id}/audio-script`, {
method: "PATCH",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(body),
})
if (!res.ok) {
const txt = await res.text().catch(() => "")
throw new Error(`updateAudioScript ${res.status} ${txt.slice(0, 200)}`)
}
return res.json()
}
export async function analyzeJob(
id: string,
frames = 12,