Skip to content

eufmike/convert-srt-to-audacity-label

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

convert-srt-to-audacity-label


Convert

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 \\.

Installation

Python 2/3 is needed.

$ sudo pip install pysrt  #Linux or macOS

Or..

$ sudo easy_install pysrt

Usage

Single *.SRT file

$ python ./main.py -f /path/to/your/srt-file.srt

# for example:
$ python main.py demo.srt
# demo-LABELS.txt wrote.

Folder includes *.SRT file

$ 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

Platform

  • macOS (Tested)
  • Linux (Tested)
  • Windows (Tested))

Reference

Releases

No releases published

Packages

No packages published

Languages