Skip to content

BirkhoffLee/swsrt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swsrt

An utility to convert Superwhisper transcription result JSON into .SRT subtitles.

Usage

This project uses Nix Flakes for reproducible development and building.

Building and Running

You can run the program directly without explicitly building first using nix run:

nix run github:BirkhoffLee/swsrt -- <path-to-meta.json> > output.srt

Otherwise, to manually build the swsrt program:

git clone https://github.com/BirkhoffLee/swsrt
cd swsrt
nix build

This will build the executable and create a symlink to it in ./result/bin/swsrt.

To run the program with your meta.json file, use:

./result/bin/swsrt <path-to-meta.json>

The program will output the generated .SRT content directly to stdout. You can redirect this output to a file:

./result/bin/swsrt <path-to-meta.json> > output.srt

Development Environment

To enter a development shell with cargo, rustc, and rust-analyzer available, run:

nix develop github:BirkhoffLee/swsrt

Inside the development shell, you can use standard Cargo commands like cargo build and cargo run.

License

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

About

An utility to convert Superwhisper transcription result JSON into .SRT subtitles.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published