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
449 stars 32 forks source link

How to not keep extra .wav files #45

Closed MaleicAcid closed 4 months ago

MaleicAcid commented 4 months ago

I got an unexpected .wav file when transcribing an mp4 video. I tried adding the clear_temp_folder=True parameter but the .wav file is still there. How can I not keep this redundant file?

(video-tools-py3.11) PS C:\gitspace\transcribe\project-dir> ls .\.data\
Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a---          2023/10/12    18:10      469862825 Lesson 6 Examples.mp4
-a---           2024/6/23     4:04          68310 Lesson 6 Examples.srt
-a---           2024/6/23     4:00      405860430 Lesson 6 Examples.wav
zh-plus commented 4 months ago

Thank you for raising this issue. I will soon address it in the next minor version.

zh-plus commented 4 months ago

Fixed in version 1.5.0

clear_temp=True also clear generated wav files.