makepad/libs/flow/recipes/templates/expanded-prompt-to-sfx.splash
Arena Agent d8d5ea8b6a Repair integration manifests and port nigig exports onto upstream widget families
Restore missing required asset/flow packages from the pinned nigig revision; retain upstream script isolation, X11 hover, and widget-core fixes. Validated makepad-widgets data feature with Rust 1.97.1.
2026-10-26 11:23:26 +00:00

17 lines
714 B
Text

use mod.flow.*
/** The sound idea to expand and synthesize. */
let prompt = Input{ type: @text default: "a heavy steel hatch slams in a concrete tunnel" }
let expand = Llm{
system: "Rewrite the prompt as one concise sound-design cue with source, space, texture, and dynamics. Return only the cue."
prompt: prompt.text()
}
let sfx = Sfx{ prompt: expand.text() seconds: 4.0 }
/** Publish the sound effect into the flow asset library. */
let published = Publish{ value: sfx.audio() namespace: "flows" tags: ["flow", "sfx"] }
Flow{
label: "Expanded prompt to sound effect"
brief: "Expands a sound idea into a production cue and synthesizes a four-second effect."
prompt, expand, sfx, published
}