GithubHelp home page GithubHelp logo

subtitles-for-svt's Introduction

SVT på engelska

A homemade solution for translating subtitles on Swedish Television (SVT).

The project is initially geared towards Swedish -> English translation, but can be adapted to target other languages supported by LibreTranslate.

Setup and Project Structure

The project has three parts:

  1. Remote translations server
  2. Local proxy server (optional)
  3. Browser script

Remote translation server

You'll need to set up an instance of LibreTranslate to handle the translation. The easiest way to do this is using Docker. If you're only planning on running translations on your own computer, you can run it locally in Docker. Otherwise use a cloud solution to host the translation server + local proxy server.

Instructions for setting up LibreTranslate can be found on the LibreTranslate site or GitHub.

Local proxy server

This step is optional and only required if running a remote/cloud based Translation service.

In the file localServer.py, you'll need to change the url variable inside the function make_translation_request to point to your remote server.

Browser script

The script to run can be found in browserScript.js.

Make sure that the port (and host) are correctly configured inside the translate function, depending on your setup.

Run

Once you've configured the above, you can get instructions for how to watch by launching index.html.

subtitles-for-svt's People

Contributors

schafo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.