zh-plus / openlrc

Transcribe and translate voice into LRC file using Whisper and LLMs (GPT, Claude, et,al). 使用whisper和LLM(GPT,Claude等)来转录、翻译你的音频为字幕文件。
https://zh-plus.github.io/openlrc/
MIT License
459 stars 33 forks source link

Skip extract audio when processed result existed #60

Open MaleicAcid opened 1 week ago

MaleicAcid commented 1 week ago

The current code will still repeat to extract audio:

class Preprocessor:
    def pre_process(self, paths, noise_suppress=False):
        for i, path in enumerate(paths):
             ...
            paths[i] = extract_audio(path)

        ...
        preprocessor = Preprocessor(paths, options=self.preprocess_options)
        paths = preprocessor.run(noise_suppress)
zh-plus commented 2 days ago

Will be fixed in the next minor release.