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

Function format_srt

funasr/cli.py:28–32  ·  view source on GitHub ↗
(segments)

Source from the content-addressed store, hash-verified

26
27
28def format_srt(segments):
29 lines = []
30 for i, seg in enumerate(segments, 1):
31 lines += [str(i), f"{_srt_time(seg.get('start',0))} --> {_srt_time(seg.get('end',0))}", seg.get('text',''), ""]
32 return "\n".join(lines)
33
34
35def format_tsv(segments):

Callers 1

_format_outputFunction · 0.85

Calls 1

_srt_timeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…