- All letters lowercase
- Use Underlines to combine words (_)
- Don't use Spaces!
- Put all Subtitles in one folder
- Use the Name of the Source File (audio.mp3 / video.mp4)
- Structure:
{NAME_OF_AUDIO_FILE}_{LANGUAGE_TAG}.srt
For example:
- Audio File: interview_peter.mp3
- Subtitle File: interview_peter.mp3
Define this Variable
const SUBTITLE_PATH = "YOUR_PATH";
And also define these Functions here. They will manage the output.
function setSubtitleText(text) {}
function clearCurrentSubtitleText() {}
Call this Function to generate a Subtitle
function generateSubtitles(filePath) {}