Post

SRT File Language Translation

Created a quick POC for translating an SRT file from English to a different language.

In my mind, the POC is simple and shouldn’t take a few hours to write. Using the Azure Cognitive Services – Text Translation API should do the trick. And for rapid development, I used the SubtitlesParser NuGet module to quickly parse the SRT file.

What I found interesting was that translation actually uses the target language characters after translation. See here for an example, I initially expected to see Japanese Romanji instead of Kanji, Hiragana, and Katakana characters.

20190128-translate-japanese

The source code for this POC is found here.

This post is licensed under CC BY 4.0 by the author.

© Rafferty Uy. Some rights reserved.

Using the Chirpy theme for Jekyll.

The views and opinions on this blog are my own and do not represent those of my employer. Many of the articles here are proof-read and edited with generative AI, following my own system prompts and writing style. Everything published has been reviewed by me.