修改输出路径
This commit is contained in:
parent
eaadf152ed
commit
0bcfb262dc
@ -27,10 +27,10 @@ def convert_to_wav(audio_file):
|
||||
|
||||
|
||||
def transcribe_audio(wav_file, original_filename, offset_time, duration_time):
|
||||
output_dir = "/home/tmfc/apps/chyoso-toolkit"
|
||||
output_dir = "/home/tmfc/apps/chyoso-toolkit/whisper_output/"
|
||||
# 调用 whisper 命令行程序进行转写
|
||||
whisper_cmd = [
|
||||
"/home/tmfc/apps/whisper/.venv/bin/whisper/",
|
||||
"/home/tmfc/apps/whisper/.venv/bin/whisper",
|
||||
"--language", "zh",
|
||||
"--output_dir", output_dir,
|
||||
"--output_format", "txt",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user