diff --git a/config/processor_tools.json b/config/processor_tools.json index 3250492b..a4588a02 100644 --- a/config/processor_tools.json +++ b/config/processor_tools.json @@ -74,6 +74,30 @@ ], "default_tool": "whisper", "enabled": true + }, + "asrx": { + "tools": [ + { + "name": "swift", + "priority": 0, + "enabled": true, + "parameters": {} + }, + { + "name": "rust", + "priority": 1, + "enabled": false, + "parameters": {} + }, + { + "name": "python", + "priority": 2, + "enabled": true, + "parameters": {} + } + ], + "default_tool": "swift", + "enabled": true } } } diff --git a/src/core/processor/tool_selector.rs b/src/core/processor/tool_selector.rs index 1b1286a3..7e66cba3 100644 --- a/src/core/processor/tool_selector.rs +++ b/src/core/processor/tool_selector.rs @@ -108,6 +108,22 @@ impl ToolSelector { executor.rust_binary_path("rust_asr") } + // ASRX processor tools + ("asrx", "swift") => { + let swift_path = std::path::Path::new( + "/Users/accusys/momentry_core/scripts/swift_processors/.build/release/asrx_swift" + ); + if swift_path.exists() { Some(swift_path.to_path_buf()) } else { None } + } + ("asrx", "rust") => { + // Future: Rust ASRX implementation + executor.rust_binary_path("rust_asrx") + } + ("asrx", "python") => { + let script = executor.script_path("asrx_processor.py"); + if script.exists() { Some(script) } else { None } + } + // OCR processor tools ("ocr", "swift") => { let swift_path = std::path::Path::new(