fix: role detection regex excludes sentence punctuation (v1.15.3)

This commit is contained in:
Hawk Lee
2026-02-22 14:55:00 +08:00
parent 077e210bf2
commit b0ddef0fb6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -266,7 +266,7 @@ class AIIA_VibeVoice_TTS:
import re
lines = text.split('\n')
# Match "Role Name:" at start of line (limit to 30 chars to avoid long sentences)
role_pattern = re.compile(r'^([^\n:]{1,30})[:\uff1a]\s+')
role_pattern = re.compile(r'^([^\n::。,、;!?.,;!?`\'\"]{1,15})[:\uff1a]\s+')
# Already in [N] format
bracket_pattern = re.compile(r'^\[\d+\]\s*[:\uff1a]')
# Legacy Speaker N: format
+1 -1
View File
@@ -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.2"
version = "1.15.3"
license = {file = "LICENSE"}
readme = "README.md"
authors = [