makepad/libs/gen/recipes/presets/speech.splash

12 lines
363 B
Text

use mod.flow.*
/** The line to speak, as written. */
let prompt = Input{ type: @text default: "Game over. Try again?" }
let speech = Speech{ text: prompt.text() }
let published = Publish{ value: speech.out(@audio) tags: ["speech"] }
Flow{
label: "Speech"
brief: "A spoken line: an NPC's voice, an announcer, a narrator."
prompt, speech, published
}