Git Product home page Git Product logo

io-captions-gadget's Introduction

A gadget to display captions processed via Streamtext for display next to a video-feed, for example.
Written in Python, runs on Google App Engine.
Code available from http://code.google.com/p/io-captions-gadget/


You'll need:
 - an application on Google App Engine: http://google.com/appengine
 - for translation, you'll need a Translate API key: https://code.google.com/apis/console/
 - an account with Streamtext (the person doing the transcribing needs the account): http://streamtext.net/

To get started:
 - checkout the code and with the App Engine SDK, choose "Create new application" and point it at the root of the checkout.
 - load the URL it's running on (http://localhost:XXXX) in your browser, and you should see the yellow/blue app, with a message saying there's no event running.
 - to start an event, visit /admin, tick the box to say you're an administrator, then enter 'IHaveADream' into the Event ID field, 'Martin Luther King' (for example) into the Title field and hit Save
 - when that reloads, there'll be an event listed at the bottom with Status "Not Running". Click "Start" next to it.
 - running locally, with the single-threaded server, things are a bit jerky, but if you look back to the gadget, you should start to see the text appear.
 - hit "Deploy" in the App Engine SDK to get it running on your App Engine account (and repeat the admin setup).
 
 Configuration:
  - config.py contains a few values that you can easily change:
    - the list of language you want to offer to viewers. 
     (Translation is only done for languages that actually have people watching, but running a long event with lots of translation will likely use up the 'courtesy quota' the Translate API provides).
    - the list of languages that should be displayed right-to-left.
    - a space for you to enter your Translate API key
    - an (optional) space for you to enter a Google Analytics account ID (the code beginning UA-). It will track use of the gadget, firing events for language selection, text-size changes and for opening/closing (pausing) the captions.
  - the admin page (accessible to anyone who is an admin on the App Engine account) lets you configure two events to be running simultaneously. You could increase this to more if needed, but how that performs hasn't been tested.   

io-captions-gadget's People

Contributors

jmsgomes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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