aboutsummaryrefslogtreecommitdiff
path: root/app/converter/clients/speakers.py
diff options
context:
space:
mode:
authorhistoria <historiavg@proton.me>2026-08-28 14:57:48 -0400
committerhistoria <historiavg@proton.me>2026-08-28 14:57:48 -0400
commitdb38085d07ce75f8961eecdc1919e98748254c53 (patch)
treebeaea2ba84de05bfc2fa90e9b92a24568d3b4cb9 /app/converter/clients/speakers.py
parentafb2c2d5b297c5aa28bcced0e3f90e207d799c2a (diff)
downloadtts-audiobook-generator-db38085d07ce75f8961eecdc1919e98748254c53.tar.gz
refactor: overhaul config.py, remove cli default options
Diffstat (limited to 'app/converter/clients/speakers.py')
-rw-r--r--app/converter/clients/speakers.py15
1 files changed, 4 insertions, 11 deletions
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)