jianfch / stable-ts

Transcription, forced alignment, and audio indexing with OpenAI's Whisper
MIT License
1.59k stars 177 forks source link

output both txt and subs at the same time? #342

Open barrars opened 7 months ago

barrars commented 7 months ago

I want to run stable-ts on an mp3 and output both .txt file and .ass at the same time.

neither of these work: stable-ts sound.mp3 -o out.txt out.ass stable-ts sound.mp3 -o out.txt -o out.ass

jianfch commented 7 months ago

The multi-output support currently only works for multiple inputs: stable-ts 1.mp3 2.mp3 -o 1.srt 2.srt To avoid re-transcribing, you can do this: stable-ts sound.mp3 -o out.json stable-ts out.json -o out.txt stable-ts out.json -o out.ass

You can use --persist/-p with the first line avoid reloading stable-ts.

barrars commented 7 months ago

Thanks for the help!