Giter Site home page Giter Site logo

itslanguage-js's Introduction

ITSLanguage JavaScript SDK

Speech technology for language education. ๐Ÿ“ฃ

The ITSLanguage JavaScript SDK aims to help in building applications for the ITSLanguage platform. It provides easy interfaces to communicate with our [REST and WebSocket API]. We serve several packages through the npmjs.com ecosystem that can be used together. See the table below for all the packages we deliver.

Package name Description
recorder ITSLanguage compatible MediaRecorder
websocket ITSLanguage Socketio helper

Besides npm an umd build of each package is also available on unpkg.com.

Package name npm unpkg
recorder @itslanguage/recorder unpkg.com/@itslanguage/recorder/dist/
websocket @itslanguage/websocket unpkg.com/@itslanguage/websocket/dist/

Browser Compatibility

The browser compatibility relies on the socket.io support. Version below the minimal supported version are not guaranteed to work. Please see the caniuse page for socket.io for more information

Chrome Safari Firefox IE Edge
Minimal Version 84 13 78 9 83

Installation

All the available packages of the SDK will be distributed as npm packages. Package managers that can can work with the npmjs.com registry, like npm and yarn do, can be used to add SDK packages to your project. For simplicity this readme assumes npm as package manager.

Adding ITSLanguage packages into your project is as easy as instructing npm to do so. In the case of npm this will automatically add an entry in your package.json file. If that does not happen, you are probably using an older npm version (< 5.x). Consider upgrading to at least > 5.x.. Note that ITSLanguage publishes its packages scoped, which means that all packages should be prefixed with @itslanguage/PACKAGE_NAME.

# Example installation of the recorder package
npm install @itslanguage/recorder

note: As shown in the table above, all the packages are also published as an UMD bundle via unpkg.com. This makes it possible to install or download the packages without npm. All needed dependencies will also be bundled for convenience. See the example below to get an idea on how to use it.
We do recommend usage with a package manager like npm or yarn though.

<!DOCTYPE html>
<html>
  <head>
    <title>Some page title</title>
    <script src="https://unpkg.com/@itslanguage/[email protected]/dist/api.min.js"></script>
    <script>
      // The api is now available through global `itslApi`.
      itslApi.createItslApi();
    </script>
  </head>
  <body>
    Hello, world!
  </body>
</html>

Package usage

Consult the readme files of the packages for more information and documentation. See the table above for links to the proper readme files.

Contribute

Want to contribute? Nice! Good to hear, we would love to get help!
Make sure you read the code of conduct and the contribution guidelines.

Support

To get support on the SDK you can either create a [new][issue], or e-mail your question to support

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.