{"record":{"id":"f5008a8a91908e89","repo":"tinyhumansai/openhuman","slug":"voice-feature-disabled-at-compile-time","errorCode":null,"errorMessage":"voice feature disabled at compile time","messagePattern":"voice feature disabled at compile time","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/voice/stub.rs","lineNumber":73,"sourceCode":"        None\n    }\n}\n\n/// Resolve the effective STT provider string. With voice disabled the value is\n/// never used to build a real provider; the config-independent default keeps\n/// logging/telemetry callers seeing a sensible string.\npub fn effective_stt_provider(_config: &Config) -> String {\n    \"cloud\".to_string()\n}\n\n/// Always errors: no STT provider can be constructed when voice is compiled\n/// out. Callers `?`-propagate the error, so the boxed provider is never used.\npub fn create_stt_provider(\n    _provider: &str,\n    _model: &str,\n    _config: &Config,\n) -> anyhow::Result<Box<dyn SttProvider>> {\n    Err(anyhow::anyhow!(DISABLED_MSG))\n}\n\n// ---------------------------------------------------------------------------\n// Event bus surface (mirrors `bus::publish_ptt_transcript_committed`)\n// ---------------------------------------------------------------------------\n\n/// No-op: with voice disabled there is no PTT dictation path to announce.\npub fn publish_ptt_transcript_committed(\n    _thread_id: String,\n    _session_id: u64,\n    _text_len: usize,\n    _held_ms: u64,\n    _finalized_by_watchdog: bool,\n) {\n    log::debug!(\"[voice-stub] publish_ptt_transcript_committed ignored (voice disabled)\");\n}\n\n// ---------------------------------------------------------------------------","sourceCodeStart":55,"sourceCodeEnd":91,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/voice/stub.rs#L55-L91","documentation":"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.","triggerScenarios":"Thrown at src/openhuman/voice/stub.rs:73 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Rebuild with the voice feature enabled (--features voice)","Or route STT through a deployment that includes the voice family"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}