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/speakers.py | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'app/converter/clients/speakers.py') diff --git a/app/converter/clients/speakers.py b/app/converter/clients/speakers.py index eecd52a..a68af68 100644 --- a/app/converter/clients/speakers.py +++ b/app/converter/clients/speakers.py @@ -2,13 +2,11 @@ from typing import Optional -from .. import config - # Built-in CustomVoice speaker names for the Qwen3-TTS family. Shared by the -# qwen-tts demo backend (config.SPEAKER, the qwen setup/form) and the -# audio.cpp audiocpp backend's CustomVoice entry (the Convert form's Speaker -# picker). Entries are the canonical/config form; speaker_display_name() -# maps them to the wire (display) form via SPEAKER_DISPLAY_NAMES below. +# qwen-tts demo backend (the qwen setup/form) and the audio.cpp audiocpp +# backend's CustomVoice entry (the Convert form's Speaker picker). Entries +# are the canonical form; speaker_display_name_for() maps them to the wire +# (display) form via SPEAKER_DISPLAY_NAMES below. QWEN3_TTS_SPEAKERS = ("Vivian", "Serena", "Uncle_Fu", "Dylan", "Eric", "Ryan", "Aiden", "Ono_Anna", "Sohee") @@ -50,8 +48,3 @@ def is_builtin_speaker(name: Optional[str]) -> bool: norm = name.lower().replace("_", " ").replace("-", " ") return any(norm == speaker.lower().replace("_", " ") for speaker in QWEN3_TTS_SPEAKERS) - - -def speaker_display_name() -> str: - """Return the display name for the configured custom speaker.""" - return speaker_display_name_for(config.SPEAKER) -- cgit v1.2.3