- Moved TTS nodes into a dedicated 'nodes' directory for better organization. - Introduced a base class `NodeTTSBase` to handle common functionality for TTS nodes. - Added new TTS nodes: `TTS_KokoroNode`, `TTS_ChatterboxNode`, `TTS_StyleTTS2Node`, `TTS_KittenTTSNode`, `TTS_F5TTSNode`, and `TTS_GlobalPresetNode`. - Updated the main module to include mappings for new nodes and their display names. - Removed the old `tts_webui_openai_tts.py` file and integrated its functionality into the new structure. - Created utility functions for audio processing and file handling in the `utils` module. - Added unit tests for the `TTS_ChatterboxNode` to ensure functionality and reliability. - Deprecated the `_shared.py` module in favor of explicit per-node payloads and the new base class.
12 lines
269 B
Python
12 lines
269 B
Python
import os
|
|
|
|
try:
|
|
from folder_paths import get_output_directory as _get_output_directory
|
|
except Exception:
|
|
def _get_output_directory():
|
|
return os.path.join(os.getcwd(), "output")
|
|
|
|
|
|
def get_output_directory():
|
|
return _get_output_directory()
|