Skip to content

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

feat(config): add live voice configuration to schema

Steven Enamakel98ce1004a5de
diff --git a/crates/openhuman-core/src/config/schema/mod.rs b/crates/openhuman-core/src/config/schema/mod.rs
index 27462c0f50..9f4bd330b0 100644
--- a/crates/openhuman-core/src/config/schema/mod.rs
+++ b/crates/openhuman-core/src/config/schema/mod.rs
@@ -132,6 +132,8 @@ pub use web_chat_config::WebChatConfig;
mod voice_server;
pub use voice_server::{SttEngine, VoiceActivationMode, VoiceServerConfig};
pub mod voice_providers;
+pub mod voice_live;
+pub use voice_live::LiveVoiceConfig;
pub use voice_providers::{
generate_voice_provider_id, is_voice_slug_reserved, BuiltinVoiceProvider, VoiceCapability,
VoiceProviderCreds, BUILTIN_VOICE_PROVIDERS,
diff --git a/crates/openhuman-core/src/config/schema/types/config.rs b/crates/openhuman-core/src/config/schema/types/config.rs
index 6b4ef6b4bc..782ce9c95e 100644
--- a/crates/openhuman-core/src/config/schema/types/config.rs
+++ b/crates/openhuman-core/src/config/schema/types/config.rs
@@ -444,6 +444,11 @@ pub struct Config {
#[serde(default)]
pub tts_provider: Option<String>,
+ /// Live voice agent settings: the default live provider and each
+ /// provider's model / voice / language (`voice::live`).
+ #[serde(default)]
+ pub voice_live: crate::config::schema::voice_live::LiveVoiceConfig,
+
#[serde(default)]
pub integrations: IntegrationsConfig,
diff --git a/crates/openhuman-core/src/config/schema/types/defaults.rs b/crates/openhuman-core/src/config/schema/types/defaults.rs
index 531efb591c..13179732f8 100644
--- a/crates/openhuman-core/src/config/schema/types/defaults.rs
+++ b/crates/openhuman-core/src/config/schema/types/defaults.rs
@@ -105,6 +105,7 @@ impl Default for Config {
hosting: HostingConfig::default(),
voice_server: VoiceServerConfig::default(),
voice_providers: Vec::new(),
+ voice_live: crate::config::schema::voice_live::LiveVoiceConfig::default(),
stt_provider: None,
tts_provider: None,
integrations: IntegrationsConfig::default(),