1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! Filesystem- and parameter-level precheck of an [`EngineConfig`].
//!
//! `Engine::prepare` remains the authority: it loads the native models and
//! rejects anything they reject. [`validate`] runs the same cheap checks
//! `prepare` runs before any model load — local backends delegate to the
//! shared `backends::precheck` layer (family capability rules, VAD
//! parameters, hotword bias against the model's vocabulary, filesystem and
//! punctuation layout), and cloud variants go through their parameter
//! validation. It never loads native models: a passing precheck does not
//! replace `Engine::prepare`, and a failing one names the first problem
//! found.
//!
//! This module is always compiled: cloud branches follow their own backend
//! features, and disabled backends (including the local branches in builds
//! without `backend-sherpa`) mirror `Engine::prepare`'s rejection.
use crate::;
/// Cheap precheck of an [`EngineConfig`]: local model, VAD and punctuation
/// paths are probed on disk, hotword bias and VAD parameters go through the
/// validators `Engine::prepare` applies, and cloud variants are run through
/// their parameter validation.