You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: nodes/srt_tts_node.py
+73-6Lines changed: 73 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@
8
8
importtempfile
9
9
importos
10
10
importhashlib
11
+
importgc
11
12
fromtypingimportDict, Any, Optional, List, Tuple
12
13
13
14
# Use direct file imports that work when loaded via importlib
@@ -153,6 +154,10 @@ def INPUT_TYPES(cls):
153
154
"step": 0.5,
154
155
"tooltip": "Maximum allowed deviation (in seconds) for timing adjustments in 'smart_natural' mode. Higher values allow more flexibility."
155
156
}),
157
+
"crash_protection_template": ("STRING", {
158
+
"default": "hmm ,, {seg} hmm ,,",
159
+
"tooltip": "Custom padding template for short text segments to prevent ChatterBox crashes. ChatterBox has a bug where text shorter than ~21 characters causes CUDA tensor errors in sequential generation. Use {seg} as placeholder for the original text. Examples: '...ummmmm {seg}' (default hesitation), '{seg}... yes... {seg}' (repetition), 'Well, {seg}' (natural prefix), or empty string to disable padding. This only affects ChatterBox nodes, not F5-TTS nodes."
0 commit comments