Coder Social home page Coder Social logo

slide-chimp's Introduction

<slide-chimp>

Web Component that allows you to pass forward/backward slides using Speech Recognition API.

Demo

Check it live!

Install

Install the component using Bower:

$ bower install slide-chimp --save

Or download a ZIP

Usage

  1. Import Web Components polyfill:

    <script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
  2. Import Custom Element:

    <link rel="import" href="bower_components/slide-chimp/slide-chimp.html">
  3. Start using it!

    <slide-chimp auto forward="next, go, change, forward" backward="back, previous, back one slide"></slide-chimp>

Options

Attribute Options Default Description
auto boolean false Specifies if the API speech should started when page loads.
forward string undefined Specifies the list of the words separated by comma to pass slides forward.
backward string undefined Specifies the list of the words separated by comma to pass slides backward.
text string undefined Stores the string of the recognized text.
language string en_US Specifies the language to be reconized.

Methods

Method Parameters Returns Description
start() None. Nothing Triggers the voice-elements to be played.
stop() None. Nothing Triggers the voice-elements to be stoped.

Events

Event Description
forward Triggers when the slide-chimp matchs word(s) defined in foward with speech recognition.
backward Triggers when the slide-chimp matchs word(s) defined in backward with speech recognition.

Development

In order to run it locally you'll need to fetch some dependencies and a basic server setup.

  1. Install Bower & polyserve:

    $ [sudo] npm install -g bower polyserve
  2. Install local dependencies:

    $ bower install && npm install
  3. Polyserve:

    $ polyserver
    Starting Polyserve on port 8080
    Files in this directory are available under http://localhost:8080/components/slide-chimp/

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature-or-fix
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature-or-fix
  5. Submit a pull request :P

History

For detailed changelog, check Releases.

License

MIT License

slide-chimp's People

Contributors

horacioibrahim avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Forkers

netbola

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.