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.
13 lines
499 B
Text
13 lines
499 B
Text
use mod.flow.*
|
|
|
|
/** The speech recording to transcribe. */
|
|
let audio = Input{ type: @audio }
|
|
let transcribe = Stt{ audio: audio.audio() language: "" model: "whisper-large-v3-turbo" }
|
|
/** Publish the timed transcript into the flow asset library. */
|
|
let published = Publish{ value: transcribe.json() namespace: "flows" tags: ["flow", "transcript"] }
|
|
|
|
Flow{
|
|
label: "Speech to text"
|
|
brief: "Transcribes supplied speech audio into a timed Whisper JSON record."
|
|
audio, transcribe, published
|
|
}
|