revert: restore storyboard intake workflow
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user