JSPM

itako-audio-reader-audio-element

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q32061F
  • License MIT

itako-v0 Audio Element reader plugin

Package Exports

  • itako-audio-reader-audio-element

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (itako-audio-reader-audio-element) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Itako Audio Reader Audio Element

Installation

npm install itako-audio-reader-audio-element --save

Usage

ItakoAudioReaderAudioElement(type, options) -> reader

specify instance as first argument of the Itako constructor as the value of the array.

<script src="https://npmcdn.com/itako"></script>
<script src="https://npmcdn.com/itako-audio-reader-audio-element"></script>
<script>
var reader = new ItakoAudioReaderAudioElement('audio', {
  // default gain volume (1~0)
  volume: 1,

  // default audio playbackRate (~0)
  pitch: 1,
});
var itako = new Itako([reader], [{
  transform: function(tokens){
    return tokens.map(function(token){
      return token.setType('audio');
    })
  },
}]);

// read the first argument as audio(via transform)
itako.read('http://static.edgy.black/fixture.wav');
</script>

See also

Development

Requirement global

  • NodeJS v5.10.0
  • Npm v3.7.1
  • Chrome Launcher 49.0.2623 (Mac OS X 10.11.4)
git clone https://github.com/itakojs/itako-audio-reader-audio-element
cd itako-audio-reader-audio-element
npm install

npm test

License

MIT