News for hackers. Stuff that matters.
Re:Show HN: Synchronize and translate subtitles in one go by icer2020 on Sunday May 16, 2021 @07:15PM (#27178107)
Subaligner provides a one-stop solution on automatic subtitle synchronisation and translation between 1,000+ language pairs.
Re:Show HN: Synchronize and translate subtitles in one go by metarover on Monday May 17, 2021 @01:54PM (#27186155)
The translation took quite some time to finish for a subtitle spanning 3 hrs I'afraid.
Re:Show HN: Synchronize and translate subtitles in one go by icer2020 on Monday May 17, 2021 @05:47PM (#27188848)
The very first run needs to wait for the machine translation model to be downloaded so it won't be quick. For the subsequent runs, the model will be reused as a cache.
Re:Show HN: Synchronize and translate subtitles in one go by stanchsk on Monday May 17, 2021 @06:08AM (#27181793)
Hi, could you specify the howto?
Re:Show HN: Synchronize and translate subtitles in one go by icer2020 on Monday May 17, 2021 @06:29AM (#27181958)
Hi, stanchsk,

After installation, simply passing in the source and target language codes should do the job. E.g., $ subaligner -m dual -v video.mp4 -s subtitle.srt -t eng,spa

Or just translate without synchronisation: $ subaligner_convert -i subtitle_en.srt -o subtitle_es.srt -t eng,spa

Re:Show HN: Synchronize and translate subtitles in one go by stanchsk on Monday May 17, 2021 @08:56AM (#27182872)
Thanks. How can I find which language codes I should use?
Re:Show HN: Synchronize and translate subtitles in one go by icer2020 on Monday May 17, 2021 @10:05AM (#27183545)
You can get them displayed by running: $ subaligner -lgs (on the first column). Notably, it is not the comprehensive list.