diff options
| author | historia <historiavg@proton.me> | 2026-08-25 16:49:36 -0400 |
|---|---|---|
| committer | historia <historiavg@proton.me> | 2026-08-25 16:49:36 -0400 |
| commit | 775b716d86f5e681807698522e56c3d0f861c5bf (patch) | |
| tree | 420b31c7b2f743ee83ad933bbc00073d5f6b9e2a /app/tests/test_converter.py | |
| parent | 867866f131b0b6c76c54272791e7f7dea01db990 (diff) | |
| download | tts-audiobook-generator-775b716d86f5e681807698522e56c3d0f861c5bf.tar.gz | |
feat: combine --speaker and --voice for clarity
Diffstat (limited to 'app/tests/test_converter.py')
| -rw-r--r-- | app/tests/test_converter.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/app/tests/test_converter.py b/app/tests/test_converter.py index 317e772..7aa9c69 100644 --- a/app/tests/test_converter.py +++ b/app/tests/test_converter.py @@ -131,7 +131,6 @@ class NarratorTagTests(unittest.TestCase): converter.voice_clone_ref_audio = ref_audio converter.backend = tts.BACKEND_QWEN converter.voice = None - converter.speaker = None converter.instructions = instructions return converter @@ -160,12 +159,11 @@ class NarratorTagTests(unittest.TestCase): self.assertEqual(self._converter(tts.VOICE_MODE_CLONE, "/x/???.wav")._narrator_tag(), "narrator") - def _audiocpp_converter(self, voice=None, instructions=None, speaker=None): + def _audiocpp_converter(self, voice=None, instructions=None): converter = self._converter(tts.VOICE_MODE_CUSTOM, instructions=instructions) converter.backend = tts.BACKEND_AUDIOCPP converter.voice = voice - converter.speaker = speaker return converter def test_audiocpp_design_run_uses_designed_tag(self): @@ -185,11 +183,11 @@ class NarratorTagTests(unittest.TestCase): def test_audiocpp_explicit_speaker_uses_speaker_tag(self): # A chosen CustomVoice speaker names the output, not config.SPEAKER. - converter = self._audiocpp_converter(speaker="Ryan") + converter = self._audiocpp_converter(voice="Ryan") self.assertEqual(converter._narrator_tag(), "Ryan") def test_audiocpp_explicit_speaker_normalizes_display_name(self): - converter = self._audiocpp_converter(speaker="Uncle_Fu") + converter = self._audiocpp_converter(voice="Uncle_Fu") self.assertEqual(converter._narrator_tag(), "Uncle_Fu") def test_preflight_design_run_uses_designed_tag(self): @@ -558,7 +556,6 @@ class RunOverwritePromptTests(unittest.TestCase): self.converter.voice_clone_ref_audio = None self.converter.backend = tts.BACKEND_QWEN self.converter.voice = None - self.converter.speaker = None self.converter.instructions = None self.converter.speed = 1.0 self.converter.single_file = False |
