(self, acc_ost=0.0)
| 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 |
no test coverage detected