Skip to content

This script can generate text files from subtitle files. It can be used to create transcripts of lectures, videos, podcasts, or any other media that has subtitles. The script can also generate and copy text file content in a single file from a given directory of subtitle files, or from a course directory for every section of the course.

License

Notifications You must be signed in to change notification settings

itsmacr8/subtitle-to-text-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generates text file from subtitle files.

Generate a text file from a subtitle file

Use the subtitle file located in the "lecture subtitle" folder and execute the following command.

python subtitle.py <subtitle_filename>
# Do not include the subtitle file extension.

Note from section subtitle files

Generate and copy text file content in a single file from a given directory of subtitle files

Set subtile file and output file location

Set the subtitle files location and the output file location to the respective variables (SUBTITLE_FILE_PATH and OUTPUT_FILE_PATH) in the _files_location.py file.

Note from course subtitle files

Generate and copy text file content in a single file with the name of the section folder from a course directory for every section of the course.

Set course folder location

Set the course folder location to the respective variable COURSE_DIR in the main.py file.

Run the script

python main.py

About

This script can generate text files from subtitle files. It can be used to create transcripts of lectures, videos, podcasts, or any other media that has subtitles. The script can also generate and copy text file content in a single file from a given directory of subtitle files, or from a course directory for every section of the course.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages