An utility to convert Superwhisper transcription result JSON into .SRT subtitles.
This project uses Nix Flakes for reproducible development and building.
You can run the program directly without explicitly building first using nix run:
nix run github:BirkhoffLee/swsrt -- <path-to-meta.json> > output.srtOtherwise, to manually build the swsrt program:
git clone https://github.com/BirkhoffLee/swsrt
cd swsrt
nix buildThis 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.srtTo enter a development shell with cargo, rustc, and rust-analyzer available, run:
nix develop github:BirkhoffLee/swsrtInside the development shell, you can use standard Cargo commands like cargo build and cargo run.
This project is licensed under the MIT License. See the LICENSE file for details.