Skip to content

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

docs(voice): correct hosted slug fallback description

Steven Enamakel30c2fe009f32
diff --git a/crates/openhuman-core/src/voice/factory/entry.rs b/crates/openhuman-core/src/voice/factory/entry.rs
index 0c46164d40..a23c671e5c 100644
--- a/crates/openhuman-core/src/voice/factory/entry.rs
+++ b/crates/openhuman-core/src/voice/factory/entry.rs
@@ -25,7 +25,7 @@ pub const DEFAULT_PIPER_VOICE: &str = "en_US-lessac-medium";
/// - A slug registered with the voice registry (see [`super::registry`]) wins.
/// The hosted `"cloud"` / `"openhuman"` / `"backend"` slugs are registered by
/// the hosted-backend layer, not built into the core; with none registered
-/// they fall through to the slug lookup below and error by name.
+/// they answer the `BACKEND_UNAVAILABLE:` sentinel.
/// - `"<slug>"` / `"<slug>:<model>"` → a third-party STT API resolved against
/// `config.voice_providers` (e.g. `"elevenlabs"`, `"openai:whisper-1"`,
/// `"deepgram:nova-2"`).
diff --git a/crates/openhuman-core/src/voice/factory/factory_tests.rs b/crates/openhuman-core/src/voice/factory/factory_tests.rs
index db3a471c0b..ace2584fa2 100644
--- a/crates/openhuman-core/src/voice/factory/factory_tests.rs
+++ b/crates/openhuman-core/src/voice/factory/factory_tests.rs
@@ -400,28 +400,6 @@ fn effective_tts_defaults_to_cloud() {
assert_eq!(effective_tts_provider(&config), "cloud");
}
-/// The core carries no hosted provider: `cloud`, `openhuman` and `backend` are
-/// slugs the hosted-backend layer registers, so with nothing registered they
-/// error by name instead of resolving to a built-in.
-#[test]
-fn hosted_slugs_error_by_name_when_nothing_is_registered() {
- for slug in ["cloud", "openhuman", "backend"] {
- let err = create_stt_provider(slug, "", &cfg())
- .err()
- .unwrap_or_else(|| panic!("stt `{slug}` must not resolve without a registration"))
- .to_string();
- assert!(err.contains(slug), "{err}");
- assert!(err.contains("no voice provider"), "{err}");
- }
- for slug in ["cloud", "openhuman"] {
- let err = create_tts_provider(slug, "", &cfg())
- .err()
- .unwrap_or_else(|| panic!("tts `{slug}` must not resolve without a registration"))
- .to_string();
- assert!(err.contains(slug), "{err}");
- }
-}
-
/// With no hosted speech provider registered, the default routing strings are
/// an expected "unavailable" state (filtered from Sentry), not a bad slug.
#[test]