Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(voice): remove stub dictation websocket module

Steven Enamakel70977899f41a
diff --git a/crates/openhuman-core/src/voice/stub.rs b/crates/openhuman-core/src/voice/stub.rs
index 04ef8650b8..9daa3dbc9c 100644
--- a/crates/openhuman-core/src/voice/stub.rs
+++ b/crates/openhuman-core/src/voice/stub.rs
@@ -191,26 +191,6 @@ pub mod always_on {
pub async fn shutdown() {}
}
-// ---------------------------------------------------------------------------
-// streaming::handle_dictation_ws (provided by the real voice host adapter)
-// ---------------------------------------------------------------------------
-
-// axum-only, and its sole caller (`openhuman_rpc::server::http::dictation::dictation_ws_handler`) is
-// gated the same way, so the stub's dictation-WS surface is exclusive to the
-// `http-server` feature too (#5048): voice-OFF + http-server-OFF needs no
-// `voice::streaming` at all.
-#[cfg(feature = "http-server")]
-pub mod streaming {
- use std::sync::Arc;
-
- use axum::extract::ws::WebSocket;
-
- use crate::config::Config;
-
- /// Drop the upgraded socket immediately — there is nothing to transcribe.
- pub async fn handle_dictation_ws(_socket: WebSocket, _config: Arc<Config>) {}
-}
-
// `live::ws::handle_live_voice_ws`: with voice off there are no live
// providers, so the upgraded socket is dropped immediately.
#[cfg(feature = "http-server")]