Skip to content

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

refactor(voice): adjust registry path for voice schemas

Steven Enamakel1aa4ff544403
diff --git a/crates/openhuman-core/src/voice/schemas/handlers/provider_server.rs b/crates/openhuman-core/src/voice/schemas/handlers/provider_server.rs
index 7d2f1dd54a..c92411ec83 100644
--- a/crates/openhuman-core/src/voice/schemas/handlers/provider_server.rs
+++ b/crates/openhuman-core/src/voice/schemas/handlers/provider_server.rs
@@ -20,7 +20,7 @@ use crate::voice::schemas::params::{
pub(crate) fn voice_set_providers_controller() -> BoundRegisteredController {
BoundRegisteredController::typed(
- super::registry::voice_schemas("voice_set_providers"),
+ super::super::registry::voice_schemas("voice_set_providers"),
deserialize_params::<SetProvidersParams>,
run_voice_set_providers,
)
@@ -98,7 +98,7 @@ fn run_voice_set_providers(ctx: DispatchCtx, p: SetProvidersParams) -> Controlle
pub(crate) fn voice_update_provider_settings_controller() -> BoundRegisteredController {
BoundRegisteredController::typed(
- super::registry::voice_schemas("voice_update_provider_settings"),
+ super::super::registry::voice_schemas("voice_update_provider_settings"),
deserialize_params::<VoiceUpdateProviderSettingsParams>,
run_voice_update_provider_settings,
)
@@ -280,7 +280,7 @@ fn sync_legacy_stt_engine(config: &mut crate::config::Config, provider: &str) {
pub(crate) fn voice_list_models_controller() -> BoundRegisteredController {
BoundRegisteredController::typed(
- super::registry::voice_schemas("voice_list_models"),
+ super::super::registry::voice_schemas("voice_list_models"),
deserialize_params::<VoiceListModelsParams>,
run_voice_list_models,
)
@@ -359,7 +359,7 @@ fn run_voice_list_models(ctx: DispatchCtx, p: VoiceListModelsParams) -> Controll
pub(crate) fn voice_test_provider_controller() -> BoundRegisteredController {
BoundRegisteredController::typed(
- super::registry::voice_schemas("voice_test_provider"),
+ super::super::registry::voice_schemas("voice_test_provider"),
deserialize_params::<VoiceTestProviderParams>,
run_voice_test_provider,
)
diff --git a/crates/openhuman-core/src/voice/schemas/handlers/transcribe_tts.rs b/crates/openhuman-core/src/voice/schemas/handlers/transcribe_tts.rs
index d1f1cbe349..44fb6abdc4 100644
--- a/crates/openhuman-core/src/voice/schemas/handlers/transcribe_tts.rs
+++ b/crates/openhuman-core/src/voice/schemas/handlers/transcribe_tts.rs
@@ -23,7 +23,7 @@ fn ignored_params(_params: Map<String, Value>) -> Result<(), String> {
pub(crate) fn voice_status_controller() -> BoundRegisteredController {
BoundRegisteredController::after_gate(
- super::registry::voice_schemas("voice_status"),
+ super::super::registry::voice_schemas("voice_status"),
load_voice_config,
ignored_params,
run_voice_status,
@@ -32,7 +32,7 @@ pub(crate) fn voice_status_controller() -> BoundRegisteredController {
pub(crate) fn voice_transcribe_controller() -> BoundRegisteredController {
BoundRegisteredController::after_gate(
- super::registry::voice_schemas("voice_transcribe"),
+ super::super::registry::voice_schemas("voice_transcribe"),
load_voice_config,
deserialize_params::<TranscribeParams>,
run_voice_transcribe,
@@ -41,7 +41,7 @@ pub(crate) fn voice_transcribe_controller() -> BoundRegisteredController {
pub(crate) fn voice_transcribe_bytes_controller() -> BoundRegisteredController {
BoundRegisteredController::after_gate(
- super::registry::voice_schemas("voice_transcribe_bytes"),
+ super::super::registry::voice_schemas("voice_transcribe_bytes"),
load_voice_config,
deserialize_params::<TranscribeBytesParams>,
run_voice_transcribe_bytes,
@@ -50,7 +50,7 @@ pub(crate) fn voice_transcribe_bytes_controller() -> BoundRegisteredController {
pub(crate) fn voice_tts_controller() -> BoundRegisteredController {
BoundRegisteredController::after_gate(
- super::registry::voice_schemas("voice_tts"),
+ super::super::registry::voice_schemas("voice_tts"),
load_voice_config,
deserialize_params::<TtsParams>,
run_voice_tts,
@@ -59,7 +59,7 @@ pub(crate) fn voice_tts_controller() -> BoundRegisteredController {
pub(crate) fn voice_reply_synthesize_controller() -> BoundRegisteredController {
BoundRegisteredController::after_gate(
- super::registry::voice_schemas("voice_reply_synthesize"),
+ super::super::registry::voice_schemas("voice_reply_synthesize"),
load_voice_config,
deserialize_params::<ReplySynthesizeParams>,
run_voice_reply_synthesize,
@@ -68,7 +68,7 @@ pub(crate) fn voice_reply_synthesize_controller() -> BoundRegisteredController {
pub(crate) fn voice_stt_dispatch_controller() -> BoundRegisteredController {
BoundRegisteredController::after_gate(
- super::registry::voice_schemas("voice_stt_dispatch"),
+ super::super::registry::voice_schemas("voice_stt_dispatch"),
load_voice_config,
deserialize_params::<SttDispatchParams>,
run_voice_stt_dispatch,
@@ -77,7 +77,7 @@ pub(crate) fn voice_stt_dispatch_controller() -> BoundRegisteredController {
pub(crate) fn voice_tts_dispatch_controller() -> BoundRegisteredController {
BoundRegisteredController::after_gate(
- super::registry::voice_schemas("voice_tts_dispatch"),
+ super::super::registry::voice_schemas("voice_tts_dispatch"),
load_voice_config,
deserialize_params::<TtsDispatchParams>,
run_voice_tts_dispatch,