From 077e210bf2d0ab826537fccac0b81bb0b20934b6 Mon Sep 17 00:00:00 2001 From: Hawk Lee Date: Sun, 22 Feb 2026 13:39:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Podcast=20Splitter=20=E8=AF=B4=E8=AF=9D?= =?UTF-8?q?=E4=BA=BA=E8=BE=93=E5=87=BA=E5=8F=8D=E8=BD=AC=20bug=20(?= =?UTF-8?q?=E6=8C=89=E5=90=8D=E7=A7=B0=E6=8E=92=E5=BA=8F=E8=80=8C=E9=9D=9E?= =?UTF-8?q?=E5=87=BA=E7=8E=B0=E9=A1=BA=E5=BA=8F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aiia_podcast_splitter.py | 3 +++ pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/aiia_podcast_splitter.py b/aiia_podcast_splitter.py index 8e6856b..36d5914 100755 --- a/aiia_podcast_splitter.py +++ b/aiia_podcast_splitter.py @@ -56,6 +56,9 @@ class AIIA_Podcast_Splitter: if len(speakers_seen) > 2: print(f"{log} 警告: 发现 {len(speakers_seen)} 个说话人 ({speakers_seen}),仅使用前两个") + # 按名称排序,确保 speaker_A/speaker_B 的分配不受对话顺序影响 + speakers_seen.sort() + speaker_A = speakers_seen[0] if len(speakers_seen) > 0 else None speaker_B = speakers_seen[1] if len(speakers_seen) > 1 else None diff --git a/pyproject.toml b/pyproject.toml index 8a4816c..0c27b27 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "aiia" description = "Advanced AI Audio/Video toolkit for ComfyUI. Features Multi-Role Podcast/Dialogue Generation, High-Fidelity Voice Cloning (CosyVoice/VibeVoice/IndexTTS-2), TTS, Media Management, and efficient Video tools." -version = "1.15.1" +version = "1.15.2" license = {file = "LICENSE"} readme = "README.md" authors = [