SYMBOL INDEX (93 symbols across 11 files) FILE: autocut/cut.py class Merger (line 12) | class Merger: method __init__ (line 13) | def __init__(self, args): method write_md (line 16) | def write_md(self, videos): method run (line 45) | def run(self): class Cutter (line 74) | class Cutter: method __init__ (line 75) | def __init__(self, args): method run (line 78) | def run(self): FILE: autocut/daemon.py class Daemon (line 10) | class Daemon: method __init__ (line 11) | def __init__(self, args): method run (line 15) | def run(self): method _iter (line 22) | def _iter(self): FILE: autocut/main.py function main (line 9) | def main(): FILE: autocut/package_transcribe.py class Transcribe (line 12) | class Transcribe: method __init__ (line 13) | def __init__( method run (line 43) | def run(self, audio: np.ndarray, lang: LANG, prompt: str = ""): method format_results_to_srt (line 48) | def format_results_to_srt(self, transcribe_results: List[Any]): method _detect_voice_activity (line 51) | def _detect_voice_activity(self, audio) -> List[SPEECH_ARRAY_INDEX]: method _transcribe (line 84) | def _transcribe( FILE: autocut/transcribe.py class Transcribe (line 14) | class Transcribe: method __init__ (line 15) | def __init__(self, args): method run (line 39) | def run(self): method _detect_voice_activity (line 56) | def _detect_voice_activity(self, audio) -> List[SPEECH_ARRAY_INDEX]: method _transcribe (line 89) | def _transcribe( method _save_srt (line 110) | def _save_srt(self, output, transcribe_results): method _save_md (line 115) | def _save_md(self, md_fn, srt_fn, video_fn): FILE: autocut/type.py class WhisperModel (line 67) | class WhisperModel(Enum): method get_values (line 78) | def get_values(): class WhisperMode (line 82) | class WhisperMode(Enum): method get_values (line 88) | def get_values(): FILE: autocut/utils.py function load_audio (line 11) | def load_audio(file: str, sr: int = 16000) -> np.ndarray: function is_video (line 24) | def is_video(filename): function is_audio (line 29) | def is_audio(filename): function change_ext (line 34) | def change_ext(filename, new_ext): function add_cut (line 42) | def add_cut(filename): class MD (line 53) | class MD: method __init__ (line 54) | def __init__(self, filename, encoding): method load_file (line 62) | def load_file(self): method clear (line 67) | def clear(self): method write (line 70) | def write(self): method tasks (line 74) | def tasks(self): method done_editing (line 83) | def done_editing(self): method add (line 89) | def add(self, line): method add_task (line 92) | def add_task(self, mark, contents): method add_done_editing (line 95) | def add_done_editing(self, mark): method add_video (line 98) | def add_video(self, video_fn): method _parse_task_status (line 104) | def _parse_task_status(self, line): function check_exists (line 112) | def check_exists(output, force): function expand_segments (line 124) | def expand_segments(segments, expand_head, expand_tail, total_length): function remove_short_segments (line 138) | def remove_short_segments(segments, threshold): function merge_adjacent_segments (line 143) | def merge_adjacent_segments(segments, threshold): function compact_rst (line 160) | def compact_rst(sub_fn, encoding): function trans_srt_to_md (line 199) | def trans_srt_to_md(encoding, force, srt_fn, video_fn=None): FILE: autocut/whisper_model.py class AbstractWhisperModel (line 19) | class AbstractWhisperModel(ABC): method __init__ (line 20) | def __init__(self, mode, sample_rate=16000): method load (line 26) | def load(self, *args, **kwargs): method transcribe (line 30) | def transcribe(self, *args, **kwargs): method _transcribe (line 34) | def _transcribe(self, *args, **kwargs): method gen_srt (line 38) | def gen_srt(self, transcribe_results: List[Any]) -> List[srt.Subtitle]: class WhisperModel (line 42) | class WhisperModel(AbstractWhisperModel): method __init__ (line 43) | def __init__(self, sample_rate=16000): method load (line 47) | def load( method _transcribe (line 60) | def _transcribe(self, audio, seg, lang, prompt): method transcribe (line 70) | def transcribe( method gen_srt (line 121) | def gen_srt(self, transcribe_results): class OpenAIModel (line 154) | class OpenAIModel(AbstractWhisperModel): method __init__ (line 159) | def __init__(self, rpm: int, sample_rate=16000): method load (line 168) | def load(self, model_name: Literal["whisper-1"] = "whisper-1"): method transcribe (line 179) | def transcribe( method _transcribe (line 270) | def _transcribe( method gen_srt (line 293) | def gen_srt(self, transcribe_results: List[srt.Subtitle]): class FasterWhisperModel (line 313) | class FasterWhisperModel(AbstractWhisperModel): method __init__ (line 314) | def __init__(self, sample_rate=16000): method load (line 318) | def load( method _transcribe (line 335) | def _transcribe(self): method transcribe (line 338) | def transcribe( method gen_srt (line 359) | def gen_srt(self, transcribe_results): FILE: test/config.py class TestArgs (line 45) | class TestArgs: method __init__ (line 46) | def __init__(self): FILE: test/test_cut.py class TestCut (line 11) | class TestCut(unittest.TestCase): method setUpClass (line 13) | def setUpClass(cls): method tearDown (line 25) | def tearDown(self): method test_srt_cut (line 36) | def test_srt_cut(self, file_name): method test_md_cut (line 52) | def test_md_cut(self, file_name): FILE: test/test_transcribe.py class TestTranscribe (line 18) | class TestTranscribe(unittest.TestCase): method setUpClass (line 20) | def setUpClass(cls): method tearDownClass (line 39) | def tearDownClass(cls): method tearDown (line 44) | def tearDown(self): method test_default_transcribe (line 52) | def test_default_transcribe(self, file_name): method test_jump_done_transcribe (line 63) | def test_jump_done_transcribe(self, file_name): method test_en_transcribe (line 74) | def test_en_transcribe(self, file_name): method test_force_transcribe (line 86) | def test_force_transcribe(self, file_name): method test_encoding_transcribe (line 110) | def test_encoding_transcribe(self, file_name): method test_vad_transcribe (line 124) | def test_vad_transcribe(self, file_name):