Skip to content

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

feat(voice): update voice schema definitions

Steven Enamakel3103e3fa85a6
diff --git a/crates/openhuman-core/src/voice/schemas/registry.rs b/crates/openhuman-core/src/voice/schemas/registry.rs
index 583ab83d46..d2f2e1d4fd 100644
--- a/crates/openhuman-core/src/voice/schemas/registry.rs
+++ b/crates/openhuman-core/src/voice/schemas/registry.rs
@@ -121,7 +121,12 @@ pub fn voice_schemas(function: &str) -> ControllerSchema {
description:
"Transcribe audio from a file path through the configured STT engine, with optional LLM cleanup.",
inputs: vec![
- required_string("audio_path", "Path to the audio file."),
+ FieldSchema {
+ name: "audio_path",
+ ty: TypeSchema::String,
+ comment: "Path to the audio file.",
+ required: false,
+ },
optional_string("context", "Conversation context for LLM post-processing."),
optional_bool(
"skip_cleanup",
diff --git a/crates/openhuman-core/src/voice/schemas_tests.rs b/crates/openhuman-core/src/voice/schemas_tests.rs
index 1ddd25b207..14c5eeb412 100644
--- a/crates/openhuman-core/src/voice/schemas_tests.rs
+++ b/crates/openhuman-core/src/voice/schemas_tests.rs
@@ -9,7 +9,7 @@ use serde_json::json;
fn legacy_voice_catalog_keeps_its_handler_and_example_contracts() {
crate::core::all::verify_parameter_contracts(
&all_voice_registered_controllers(),
- &super::parameter_contracts(),
+ &crate::voice::parameter_contracts(),
)
.unwrap();
}