add multiple audiofiles input and glue it

This commit is contained in:
swrneko
2025-09-11 14:04:21 +03:00
parent 6b27149460
commit f2c7dcbeb6
6 changed files with 39 additions and 10 deletions

View File

@@ -23,7 +23,7 @@ class FasterWhisper:
for seg in segments:
text += f"[{self.format_timestamp(seg.start)} -> {self.format_timestamp(seg.end)}] {seg.text}" + '\n'
return(text)
return text
def format_timestamp(self, seconds: float) -> str:
millis = int(seconds * 1000)