MCPcopy Index your code
hub / github.com/modelscope/FunASR / _srt_time

Function _srt_time

funasr/cli.py:22–25  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

20
21
22def _srt_time(ms):
23 s = ms / 1000.0
24 h, m, sec = int(s // 3600), int((s % 3600) // 60), int(s % 60)
25 return f"{h:02d}:{m:02d}:{sec:02d},{int((s % 1) * 1000):03d}"
26
27
28def format_srt(segments):

Callers 2

format_srtFunction · 0.85
_format_outputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…