GithubHelp home page GithubHelp logo

tannydobreva / serverless-subtitles Goto Github PK

View Code? Open in Web Editor NEW

This project forked from awslabs/serverless-subtitles

0.0 0.0 0.0 18.01 MB

Serverless Subtitles can handle a video input, extract the sound, transcript it and generate different subtitle files for your video.

License: Apache License 2.0

Shell 14.99% Python 48.45% HTML 14.76% JavaScript 21.81%

serverless-subtitles's Introduction

Serverless Subtitles

Serverless Subtitles is a demonstration project which allows you to prove the usage of several AWS Products.

Original idea by Maxime THOMAS - [email protected] Open Source Code under Apache License

Pitch

You have a video but it's in english and you have difficulties to understand it.

Serverless Subtitles can handle a video input, extract the sound, transcript it and generate different subtitle files for your video.

Upload of the MP4 file

When the file is processed, you can access to a preview of the video with different generated languages.

Play of the preview

Examples of the different VTT format files generated : EN | FR

TL;DR

This is working only in us-east-1 region so far.

$ cd cloudformation;
$ export USERNAME=<unique user id with only chars>
$ ./create-all.sh

AWS Services demonstrated

Elastic Transcoder :

Transcode is a service allowing you to transform videos. We use it to extract the sound of a MP4 file to a MP3 file.

https://aws.amazon.com/en/elastictranscoder/

Transcribe

Transcribe is a service allowing you to transform speech to text. We use it to get the transcript of the MP3 file.

https://aws.amazon.com/en/transcribe/

Translate

Translate is a service allowing you to translate text file in different languages. We use it to translate subtitle files.

https://aws.amazon.com/en/translate/

Solution Architecture

Architecture of the solution

Set up

You must define a unique user id with only chars to setup this project.

We do so to avoid Bucket Name collision.

$ cd cloudformation;
$ export USERNAME=<unique user id with only chars>
$ ./create-all.sh

The script will do the following :

  • apply all cloudformation templates from the cloudformation/templates directory
  • set up the project :
    • uploading the lambdas functions;
    • creating mandatory keys in the S3 buckets;
    • generating a config file for the static website so JS client can directly access the resources with good arns.
  • when everything is ready (about 2 min), you will get an url that should be like : http://subtitle.static.&lt;username&gt;.aws.com.s3-website-us-east-1.amazonaws.com/

Set down

$ cd cloudformation
$ ./delete-all.sh

License

This library is licensed under the Apache 2.0 License.

serverless-subtitles's People

Contributors

wascou avatar jpeddicord 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.