Skip to main content

required_assets

Function required_assets 

Source
pub fn required_assets(flow: &Flow) -> Vec<String>
Expand description

Every audio asset the flow needs on the device, sorted and unique: the refs its prompts point at, plus — for a book node — the vocabulary it speaks times with (see crate::book, which explains why that is an asset and not a sentence).

“Needs on the device”, not “is written in the document”: the daemon asks this to decide whether a flow can be armed yet, and a book flow whose vocabulary hasn’t synced can no more run than one whose greeting hasn’t. Twin: model.ts requiredAssets.