makepad/libs/flow/recipes/templates/speech.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

20 lines
503 B
Text

use mod.flow.*
/** The words to speak. */
let prompt = Input{ type: @text default: "Welcome aboard. We leave at first light." at: vec2(40, 120) }
let speech = Speech{
text: prompt.text()
voice: "bm_daniel"
speed: 1.0
at: vec2(360, 120)
}
/** The spoken audio. */
let voice = Output{ type: @audio value: speech.audio() at: vec2(680, 120) }
Flow{
label: "Speech"
brief: "Speaks supplied text with the creator's default voice and natural speed."
prompt, speech, voice
}