The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(embed): provide voice socket stubs when features are off
Steven Enamakelc2e7c0578192
diff --git a/crates/openhuman-embed/src/host_internals.rs b/crates/openhuman-embed/src/host_internals.rsindex 8876b719e7..464fde36c4 100644--- a/crates/openhuman-embed/src/host_internals.rs+++ b/crates/openhuman-embed/src/host_internals.rs@@ -300,15 +300,23 @@ pub mod voice {subscribe_dictation_events, subscribe_transcription_results,};}- #[cfg(all(feature = "voice", feature = "http-server"))]+ // The core carries the live-voice and dictation sockets only with voice and+ // the HTTP server compiled in. Where its features differ from embed's (a+ // workspace build unifies them separately), rpc still names these paths, so+ // embed supplies a socket-dropping stand-in rather than a missing item.pub mod live {pub mod ws {+ #[cfg(all(feature = "voice", feature = "http-server"))]pub use openhuman_core::voice::live::ws::handle_live_voice_ws;+ #[cfg(not(all(feature = "voice", feature = "http-server")))]+ pub async fn handle_live_voice_ws<S, C>(_socket: S, _config: C) {}}}- #[cfg(all(feature = "voice", feature = "http-server"))]pub mod streaming {+ #[cfg(all(feature = "voice", feature = "http-server"))]pub use openhuman_core::voice::streaming::handle_dictation_ws;+ #[cfg(not(all(feature = "voice", feature = "http-server")))]+ pub async fn handle_dictation_ws<S, C>(_socket: S, _config: C) {}}}diff --git a/crates/openhuman-rpc/src/server/http/dictation.rs b/crates/openhuman-rpc/src/server/http/dictation.rsindex 88f47c52fb..5912ee53fe 100644--- a/crates/openhuman-rpc/src/server/http/dictation.rs+++ b/crates/openhuman-rpc/src/server/http/dictation.rs@@ -47,14 +47,7 @@ pub(super) async fn dictation_ws_handler(return;}};- #[cfg(all(feature = "voice", feature = "http-server"))]crate::core_host::voice::streaming::handle_dictation_ws(socket, config).await;- #[cfg(not(all(feature = "voice", feature = "http-server")))]- {- // The core only carries the dictation socket with voice compiled in.- let _ = (socket, config);- log::warn!("[ws] dictation requested but this build has no voice support");- }})}diff --git a/crates/openhuman-rpc/src/server/http/live_voice.rs b/crates/openhuman-rpc/src/server/http/live_voice.rsindex b1f229c653..11a4754d1a 100644--- a/crates/openhuman-rpc/src/server/http/live_voice.rs+++ b/crates/openhuman-rpc/src/server/http/live_voice.rs@@ -31,13 +31,6 @@ pub(super) async fn live_voice_ws_handler(return;}};- #[cfg(all(feature = "voice", feature = "http-server"))]crate::core_host::voice::live::ws::handle_live_voice_ws(socket, config).await;- #[cfg(not(all(feature = "voice", feature = "http-server")))]- {- // The core only carries the live-voice socket with voice compiled in.- let _ = (socket, config);- log::warn!("[ws] live voice requested but this build has no voice support");- }})}