- Modified by Mike Shih
- Original code credit to scateu
- GitHub Profile: https://github.com/scateu
- Repo: https://github.com/scateu/convert-srt-to-audacity-label
Convert SRT file to audacity supported label.
Useful when editing an long interview, with auto generated SRT files.
Multiple lines within a single SRT screen will be concatenated with \\
.
Python 2/3 is needed.
$ sudo pip install pysrt #Linux or macOS
Or..
$ sudo easy_install pysrt
$ python ./main.py -f /path/to/your/srt-file.srt
# for example:
$ python main.py demo.srt
# demo-LABELS.txt wrote.
$ python ./main.py -d /path/to/your/
# for example:
$ python -d ./
# all *.srt files in ./ will be converted to .txt
# a merge file will also be created.
# to turn merging off, add flag -nm
# for example:
$ python ./main.py -d /path/to/your/ -nm
- macOS (Tested)
- Linux (Tested)
- Windows (Tested))
- https://github.com/agermanidis/autosub: Command-line utility for auto-generating subtitles for any video file (Google API)