Fixed every known issue with multi image loader and added text output to speech length calculator

Fixed every known issue with multi image loader and added text output to speech length calculator
This commit is contained in:
WhatDreamsCost
2026-05-06 00:18:09 -05:00
parent 1a1174eaa0
commit 31e27fceac
2 changed files with 293 additions and 202 deletions

View File

@@ -15,8 +15,10 @@ class SpeechLengthCalculator:
}
}
RETURN_TYPES = ("INT", "INT", "INT")
RETURN_NAMES = ("slow_frame_count", "average_frame_count", "fast_frame_count")
# Added "STRING" to RETURN_TYPES
RETURN_TYPES = ("INT", "INT", "INT", "STRING")
# Added "text" to RETURN_NAMES
RETURN_NAMES = ("slow_frame_count", "average_frame_count", "fast_frame_count", "text")
FUNCTION = "calculate_speech"
CATEGORY = "text/speech"
@@ -45,4 +47,5 @@ class SpeechLengthCalculator:
avg_frames = calc_frames(130)
fast_frames = calc_frames(160)
return (slow_frames, avg_frames, fast_frames)
# Added active_text as the 4th returned value
return (slow_frames, avg_frames, fast_frames, active_text)