Skip to content

armgit / hypit

Public Imported from GitHub
0

Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.

fix(seedance): reject m4a reference audio at decode time

rpone41f355fac9bf
diff --git a/packages/seedance/src/surface.ts b/packages/seedance/src/surface.ts
index ccd59b61..2912d656 100644
--- a/packages/seedance/src/surface.ts
+++ b/packages/seedance/src/surface.ts
@@ -109,6 +109,9 @@ function mediaReference(
if (value !== undefined && (value.kind !== "blob" || !value.mediaType.startsWith(`${role}/`))) {
throw new Error(`${subject} must reference ${role} media`);
}
+ if (value !== undefined && value.kind === "blob" && role === "audio" && ["audio/mp4", "audio/x-m4a"].includes(value.mediaType)) {
+ throw new Error(`${subject} references m4a audio, which Seedance does not accept; convert to wav or mp3 and admit that file`);
+ }
return reference;
}