forge_tts/error.rs
1/// Why a synthesis attempt failed; the tool layer words its message from
2/// these variants.
3#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)]
4pub enum Error {
5 #[error("model file missing: {0}")]
6 ModelMissing(String),
7 #[error("voice {0} is not installed")]
8 VoiceMissing(String),
9 #[error("model load failed: {0}")]
10 Load(String),
11 #[error("render failed: {0}")]
12 Render(String),
13 /// The caller stopped a bench: what ran is not a result.
14 #[error("bench cancelled")]
15 Cancelled,
16}