Skip to content

small script for converting a transcription file (.trs) to subtitles (.srt)

Notifications You must be signed in to change notification settings

geomedialab/convert-trs-srt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

simple script for converting .trs files to .srt

Transcriptions from services like Transcriber can sometimes be produced in an XML format called TRS (.trs)

Timestamped transcriptions contained in formats such as .trs can be paired with their media in a video player as subtitles, yet need to be in a valid subtitle format such as .vtt or .srt.

Services which perform the conversion between .trs and .srt are hard to find. This script does that.

instructions

Simply download the script and, from the command line and inside the directory in which the script was downloaded, enter your python interpreter command, followed by the script name and then the file you want to convert (python convert.py 'transcription_1.trs'). Make sure the file you want to convert is in this directory.

The output .srt file can then be found in the same directory.

About

small script for converting a transcription file (.trs) to subtitles (.srt)

Topics

Resources

Stars

Watchers

Forks

Languages