diff options
Diffstat (limited to 'makima/src/daemon/cli/server.rs')
| -rw-r--r-- | makima/src/daemon/cli/server.rs | 49 |
1 files changed, 22 insertions, 27 deletions
diff --git a/makima/src/daemon/cli/server.rs b/makima/src/daemon/cli/server.rs index adb765d..667f9ea 100644 --- a/makima/src/daemon/cli/server.rs +++ b/makima/src/daemon/cli/server.rs @@ -3,39 +3,34 @@ use clap::Args; /// Run the makima server. +/// +/// ML model paths (parakeet / sortformer / chatterbox) are optional. When +/// none are provided the server still starts; the Listen and Speak websocket +/// endpoints just return a "not configured" error if a client tries to use +/// them. This is the supported way to run a slim deployment of makima +/// without the LLM/STT/TTS dependencies — see `Dockerfile` (slim) vs +/// `Dockerfile.full` (with models). #[derive(Args, Debug)] pub struct ServerArgs { /// Server port #[arg(long, env = "PORT", default_value = "8080")] pub port: u16, - /// Path to parakeet model directory - #[arg( - long, - env = "PARAKEET_MODEL_DIR", - default_value = "models/parakeet-tdt-0.6b-v3" - )] - pub parakeet_model_dir: String, - - /// Path to parakeet EOU model directory - #[arg( - long, - env = "PARAKEET_EOU_DIR", - default_value = "models/realtime_eou_120m-v1-onnx" - )] - pub parakeet_eou_dir: String, - - /// Path to sortformer model - #[arg( - long, - env = "SORTFORMER_MODEL_PATH", - default_value = "models/diarization/diar_streaming_sortformer_4spk-v2.1.onnx" - )] - pub sortformer_model_path: String, - - /// Path to Chatterbox TTS model directory - #[arg(long, env = "CHATTERBOX_MODEL_DIR", default_value = "models/chatterbox-turbo")] - pub chatterbox_model_dir: String, + /// Path to parakeet model directory (optional; STT disabled when unset). + #[arg(long, env = "PARAKEET_MODEL_DIR")] + pub parakeet_model_dir: Option<String>, + + /// Path to parakeet EOU model directory (optional). + #[arg(long, env = "PARAKEET_EOU_DIR")] + pub parakeet_eou_dir: Option<String>, + + /// Path to sortformer model (optional; diarization disabled when unset). + #[arg(long, env = "SORTFORMER_MODEL_PATH")] + pub sortformer_model_path: Option<String>, + + /// Path to Chatterbox TTS model directory (optional; TTS disabled when unset). + #[arg(long, env = "CHATTERBOX_MODEL_DIR")] + pub chatterbox_model_dir: Option<String>, /// PostgreSQL connection URI #[arg(long, env = "POSTGRES_CONNECTION_URI")] |
