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(mimo-speech): publish the declared audio port

kashorin8b94d9bc5b48
diff --git a/packages/mimo-speech/src/surface.ts b/packages/mimo-speech/src/surface.ts
index 4ae8b424..4187aa1c 100644
--- a/packages/mimo-speech/src/surface.ts
+++ b/packages/mimo-speech/src/surface.ts
@@ -146,7 +146,7 @@ function output(
id,
fragment: fragment.id,
inputs,
- outputs: { [outputName]: `${id}.${outputName}` },
+ outputs: { audio: `${id}.${outputName}` },
range: element.range,
}],
fragments: [fragment],
diff --git a/packages/mimo-speech/test/mimo-speech.test.ts b/packages/mimo-speech/test/mimo-speech.test.ts
index f0e61529..0e25491b 100644
--- a/packages/mimo-speech/test/mimo-speech.test.ts
+++ b/packages/mimo-speech/test/mimo-speech.test.ts
@@ -76,7 +76,9 @@ test("VoiceDesign publishes one reusable voice reference", async () => {
const result = await decodeMimoVoiceDesignSurface(context(`<mimo:VoiceDesign id="host" speech={story.segment.opening.speech}>
A clear, confident young woman with a grounded conversational tone.
</mimo:VoiceDesign>`));
- assert.deepEqual(result.components[0]!.outputs, { reference: "host.reference" });
+ assert.deepEqual(result.components[0]!.outputs, { audio: "host.reference" });
+ const exported = result.fragments[0]!.exports.find((item) => item.name === "audio");
+ assert.deepEqual(exported?.type, artifactTypes.blob);
assert.deepEqual(result.components[0]!.inputs["speech:text"], {
kind: "record",
id: "story.segment.opening.speech",