GithubHelp home page GithubHelp logo

moconnor-bmj / deck.narrator.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from klamping/deck.narrator.js

0.0 1.0 0.0 5.31 MB

Module for deck.js to add audio narration to slides

CSS 1.54% HTML 60.11% JavaScript 38.35%

deck.narrator.js's Introduction

deck.narrator.js

Module for deck.js to add audio narration to slides.

Blog Post

This module is described in detail in the Add Narration to Your Slide Deck With HTML5 Audio post at html5hacks.com

Usage

There are two steps to adding audio narration to your slides (aside from recording the audio):

  1. Add a 'data-narrator-duration' attribute to every slide with the value being how long the audio should play for on that slide. Assume that the first slides starts at time position zero and every slide adds on after that. For example, if my first slide has a duration of 2, it will play the first two seconds of audio. If my next slide has a duration of five, it will play 0:02-0:07 in the audio. Example:

    <section class="slide" data-narrator-duration="2">
    
  2. Add the <audio> tag to your page. Example:

    <audio controls class="deck-narrator-audio" id="narrator-audio">
      <source src="myAudio.acc" type="audio/acc" />
      <source src="myAudio.ogg" type="audio/ogg"  />
      <track kind="caption" src="captions.vtt" srclang="en" label="English" />
    </audio>
    

deck.narrator.js's People

Contributors

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