aboutsummaryrefslogtreecommitdiff
path: root/app/converter/clients/speakers.py
diff options
context:
space:
mode:
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)