Major refactoring and bug fixes 🔧 Technical Architecture: - Modular engine architecture with separated concerns - Improved ChatterBox and F5-TTS engine isolation - Better error handling and import management 🐛 Critical Bug Fixes: - Fixed F5-TTS edit functionality broken by refactoring - Restored sophisticated audio compositing system - Fixed language model discovery (F5-TTS showing all languages again) - Fixed missing exports in engine __init__.py files - Corrected method signatures for F5-TTS edit operations 🌍 Language Support: - Fixed ChatterBox language model enumeration - Restored F5-TTS multilingual model discovery - Fixed SRT node multilingual engine adapter access ⚡ Performance & Quality: - Restored advanced segment-by-segment audio compositing - Fixed edit region timing mapping for generated audio - Maintained backward compatibility with existing workflows
24 lines
888 B
Python
24 lines
888 B
Python
# Engine Adapters Package
|
|
|
|
# Import adapters with error handling
|
|
try:
|
|
from .chatterbox_adapter import ChatterBoxEngineAdapter
|
|
CHATTERBOX_ADAPTER_AVAILABLE = True
|
|
except ImportError as e:
|
|
CHATTERBOX_ADAPTER_AVAILABLE = False
|
|
# Create dummy class for compatibility
|
|
class ChatterBoxEngineAdapter:
|
|
def __init__(self, *args, **kwargs):
|
|
raise ImportError(f"ChatterBox adapter not available: {e}")
|
|
|
|
try:
|
|
from .f5tts_adapter import F5TTSEngineAdapter
|
|
F5TTS_ADAPTER_AVAILABLE = True
|
|
except ImportError as e:
|
|
F5TTS_ADAPTER_AVAILABLE = False
|
|
# Create dummy class for compatibility
|
|
class F5TTSEngineAdapter:
|
|
def __init__(self, *args, **kwargs):
|
|
raise ImportError(f"F5-TTS adapter not available: {e}")
|
|
|
|
__all__ = ['ChatterBoxEngineAdapter', 'F5TTSEngineAdapter', 'CHATTERBOX_ADAPTER_AVAILABLE', 'F5TTS_ADAPTER_AVAILABLE'] |