Giter Site home page Giter Site logo

kyle95wm / srt-2-audacity Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 9 KB

A Python script that converts SRT subtitle files into a format compatible with Audacity's label track. This tool is useful for audio and video editors who need to import subtitle timing data into Audacity for precise synchronization and editing of audio tracks.

Python 100.00%

srt-2-audacity's Introduction

SRT to Audacity Labels Converter

This repository contains a Python script that converts SRT subtitle files into a format compatible with Audacity's label track. This tool is useful for audio and video editors who need to import subtitle timing data into Audacity for precise synchronization and editing of audio tracks.

Features

  • Converts SRT subtitle files to Audacity-compatible label files.
  • Supports precise timing with six decimal places for start and end times.
  • Easy to use with command-line arguments.

Requirements

  • Python 3.x

Installation

Clone this repository to your local machine:

git clone https://github.com/kyle95wm/srt-2-audacity.git
cd srt-2-audacity

Usage

To use the script, run it from the command line with the following syntax:

python3 2audacity_r2.py <inputfile.srt> <outputfile.txt>

Example

python3 2audacity_r2.py "AlRawabi School for Girls_S01E01_School Was My Happy Place.srt" "output-labels.txt"

This command will read the SRT file AlRawabi School for Girls_S01E01_School Was My Happy Place.srt and generate an Audacity label file output-labels.txt.

Primary Use Case

This script is designed for audio and video editors who use Audacity for their editing work. By converting SRT subtitle files into a format that Audacity can read, it allows editors to easily synchronize subtitles with their audio tracks, making it easier to ensure accurate timing and alignment.

Contributing

If you would like to contribute to this project, feel free to fork the repository and submit a pull request with your changes. Any contributions, whether they are bug fixes, new features, or improvements to documentation, are welcome.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

srt-2-audacity's People

Contributors

kyle95wm avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.