Web Video Audio Text or Subtitle Play and Synchronization Howto - kimduho/webdev GitHub Wiki

Web Video Audio Text or Subtitle Play and Synchronization Howto

About

  • TODO

Web Players

var currCue = 0;  
var cues = [ 24.78, 26.81, 29.69, 34.88, ... ];  
var lyrics = [  "Am I...",  
                "Am I still tough enough?",  
                "Feels like I'm wearing down, down, down, down, down...",  
                "Is my viciousness", ... ];  
  
this.apN.addEventListener("timeupdate", timeUpdate, true);  
  
function timeUpdate() {  
    if(jaraoke.apN.currentTime > (cues[currCue] - CUEOFFSET)) {  
        var el = $(document.createElement('li')); 
        el.update(lyrics[currCue++]); 
        $('lyricsList').insertBefore(el, $('lyricsList').firstChild);  
    }  
}  
# python align.py Gen 1; // align Genesis 1
# python align.py -f John 3; // overrides any existing timings
# python align.py Gen 1 2 3 Ps 1 Col; // align Genesis 1-3, Psalm 1, and all of Colossians
  • jPlayer
  • Open Source (no licensing restrictions)
  • lightweight - only 12KB minified and gzipped
  • totally customizable and skinnable using HTML and CSS
  • free plugins available
  • audio-text synch - A/T sync by click
  • timesheets.js: a declarative approach for HTML timing using SMIL timesheets
  • here
  • Audio / Text time sync + slides
  • Media Element JS
  • Video + Audio + Subtitles (.srt)
  • HTML5 , with
<code><script src="jquery.js"></script>
<script src="mediaelement-and-player.min.js"></script>
<link rel="stylesheet" href="mediaelementplayer.css" /></code>

Video - Audio - Time Location - Slides

Reference Links

# java -cp sphinx4-samples/target/sphinx4-samples-1.0-SNAPSHOT-jar-with-dependencies.jar \
edu.cmu.sphinx.demo.aligner.AlignerDemo file.wav file.txt en-us-generic \
cmudict-5prealpha.dict cmudict-5prealpha.fst.ser
+ of                        [10110:10180]
  there                     [11470:11580]
  are                       [11670:11710]
- missing
  • Sonalight - mobile dictation application: here
  • CMUSphinx-powered app
⚠️ **GitHub.com Fallback** ⚠️