tinyhumansai/openhuman · error
voice feature disabled at compile time
Error message
voice feature disabled at compile time
What it means
This is the voice stub in a build compiled without the `voice` feature: create_stt_provider is a sentinel that always errors so callers fail fast with a build fact rather than a mysterious runtime failure. It is not a config or input problem.
Source
Thrown at src/openhuman/voice/stub.rs:73
None
}
}
/// Resolve the effective STT provider string. With voice disabled the value is
/// never used to build a real provider; the config-independent default keeps
/// logging/telemetry callers seeing a sensible string.
pub fn effective_stt_provider(_config: &Config) -> String {
"cloud".to_string()
}
/// Always errors: no STT provider can be constructed when voice is compiled
/// out. Callers `?`-propagate the error, so the boxed provider is never used.
pub fn create_stt_provider(
_provider: &str,
_model: &str,
_config: &Config,
) -> anyhow::Result<Box<dyn SttProvider>> {
Err(anyhow::anyhow!(DISABLED_MSG))
}
// ---------------------------------------------------------------------------
// Event bus surface (mirrors `bus::publish_ptt_transcript_committed`)
// ---------------------------------------------------------------------------
/// No-op: with voice disabled there is no PTT dictation path to announce.
pub fn publish_ptt_transcript_committed(
_thread_id: String,
_session_id: u64,
_text_len: usize,
_held_ms: u64,
_finalized_by_watchdog: bool,
) {
log::debug!("[voice-stub] publish_ptt_transcript_committed ignored (voice disabled)");
}
// ---------------------------------------------------------------------------View on GitHub (pinned to 7491200858)
Solutions
- Rebuild with the voice feature enabled (--features voice)
- Or route STT through a deployment that includes the voice family
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at src/openhuman/voice/stub.rs:73 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17).
Data as JSON: /api/errors/f5008a8a91908e89.
Report an issue: GitHub.