From 97a26ec4e64a98a24dad7969337d2569339db9a7 Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 4 Nov 2026 01:33:33 +0100 Subject: docs: sync with current behavior --- src/config.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/config.rs') diff --git a/src/config.rs b/src/config.rs index c05c3ae..09eabeb 100644 --- a/src/config.rs +++ b/src/config.rs @@ -75,7 +75,7 @@ pub struct Config { pub llm_api_url: String, pub database_path: String, /// Optional path to the Piper TTS `.onnx` model (or a directory of models). - /// When unset, TTS falls back to Google Translate TTS. + /// When unset, TTS commands fail; there is no external fallback. pub tts_model_path: Option, /// Piper voice name, used to resolve the model file when `tts_model_path` /// points at a directory. Ignored when it points at a `.onnx` file directly. @@ -168,7 +168,7 @@ const ENV_VARS: &[EnvVar] = &[ name: "TTS_MODEL_PATH", required: false, default: None, - description: "Path to a Piper TTS .onnx model (or a models directory). Unset => Google TTS fallback", + description: "Path to a Piper TTS .onnx model (or a models directory); TTS is disabled when unset", }, EnvVar { name: "TTS_VOICE", @@ -284,11 +284,11 @@ impl Config { } } - /// Resolve the Piper model path to pass to the `piper` CLI. + /// Resolve the Piper model path passed to `piper-rs` (in-process). /// /// - `TTS_MODEL_PATH` set to a `.onnx` file => used verbatim. /// - `TTS_MODEL_PATH` set to a directory => `{dir}/{TTS_VOICE}.onnx`. - /// - `TTS_MODEL_PATH` unset => `None` (caller falls back to Google TTS). + /// - `TTS_MODEL_PATH` unset => `None` (TTS is unavailable). pub fn piper_model_path(&self) -> Option { let configured = self.tts_model_path.as_ref()?; let path = std::path::PathBuf::from(configured); -- cgit v1.2.3