From db38085d07ce75f8961eecdc1919e98748254c53 Mon Sep 17 00:00:00 2001 From: historia Date: Fri, 28 Aug 2026 14:57:48 -0400 Subject: refactor: overhaul config.py, remove cli default options --- app/converter/clients/faster.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'app/converter/clients/faster.py') diff --git a/app/converter/clients/faster.py b/app/converter/clients/faster.py index f0874e0..48c26ab 100644 --- a/app/converter/clients/faster.py +++ b/app/converter/clients/faster.py @@ -33,7 +33,13 @@ class FasterTTSClient(BaseTTSClient): voice: Optional[str] = None, api_url: Optional[str] = None, quiet: bool = False): super().__init__(chunks_dir, quiet=quiet) - self.voice = voice or config.FASTER_VOICE + # The voice is per-run (--voice / the Generate form's Voice pick); + # there is no configured default. + self.voice = (voice or "").strip() + if not self.voice: + raise RuntimeError( + "The faster backend requires a voice: pass --voice NAME " + "naming a key in the server's voices.json (see README).") self.api_url = (api_url or config.FASTER_API_URL).rstrip("/") self._check_health() -- cgit v1.2.3