whisper_transcribe / file_name.py
chompionsawelo's picture
file name fixes
f36ca6d
raw
history blame
927 Bytes
import os
current_working_directory = os.getcwd()
current_input_file = ""
def get_title():
return os.path.basename(current_input_file)
def get_audio_file():
return f"{current_working_directory}/input_{get_title()}.wav"
def get_transcribe_file():
return f"{current_working_directory}/transcribe_{get_title()}.txt"
def get_subtitle_file():
return f"{current_working_directory}/subtitle_{get_title()}.srt"
def get_transcribe_adjusted_file():
return f"{current_working_directory}/transcribe_adjusted_{get_title()}.txt"
def get_subtitle_adjusted_file():
return f"{current_working_directory}/subtitle_adjusted_{get_title()}.srt"
def get_video_subtitle_file():
return f"{current_working_directory}/output_{get_title()}.mp4"
start_time_for_adjustment = "00:00:00"
end_time_for_adjustment = "01:00:00"
sample_groups_json = "sample_groups.json"
speaker_groups_json = "speaker_groups.json"