MCPcopy Create free account
hub / github.com/modelscope/FunClip / srt

Method srt

funclip/utils/subtitle_utils.py:48–52  ·  view source on GitHub ↗
(self, acc_ost=0.0)

Source from the content-addressed store, hash-verified

46 res += " " + word
47 return res.lstrip().rstrip("、。,")
48 def srt(self, acc_ost=0.0):
49 return "{} --> {}\n{}\n".format(
50 time_convert(self.start_sec+acc_ost*1000),
51 time_convert(self.end_sec+acc_ost*1000),
52 self.text())
53 def time(self, acc_ost=0.0):
54 return (self.start_sec/1000+acc_ost, self.end_sec/1000+acc_ost)
55

Callers 2

generate_srtFunction · 0.95
generate_srt_clipFunction · 0.95

Calls 2

textMethod · 0.95
time_convertFunction · 0.85

Tested by

no test coverage detected