# itako-audio-reader-audio-element

> itako-v0 Audio Element reader plugin

Latest version **0.1.0** (published 2016-05-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install itako-audio-reader-audio-element
pnpm add itako-audio-reader-audio-element
yarn add itako-audio-reader-audio-element
bun add itako-audio-reader-audio-element
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2016-05-14 |
| First published | 2016-04-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | 59naga |
| Maintainers | 59naga |
| Keywords | itako, itako-plugin, itako-reader, itako-audio-reader, audioContext |

## Links

- npm: https://www.npmjs.com/package/itako-audio-reader-audio-element
- Repository: https://github.com/itakojs/itako-audio-reader-audio-element
- Homepage: https://github.com/itakojs/itako-audio-reader-audio-element#readme
- Issues: https://github.com/itakojs/itako-audio-reader-audio-element/issues
- npm.io page: https://npm.io/package/itako-audio-reader-audio-element

## Recent versions

- 0.1.0 (latest) — 2016-05-14
- 0.0.0 — 2016-04-20

## README

Itako Audio Reader Audio Element
---

<p align="right">
  <a href="https://npmjs.org/package/itako-audio-reader-audio-element">
    <img src="https://img.shields.io/npm/v/itako-audio-reader-audio-element.svg?style=flat-square">
  </a>
  <a href="https://travis-ci.org/itakojs/itako-audio-reader-audio-element">
    <img src="http://img.shields.io/travis/itakojs/itako-audio-reader-audio-element.svg?style=flat-square">
  </a>
  <a href="https://ci.appveyor.com/project/59naga/itako-audio-reader-audio-element">
    <img src="https://img.shields.io/appveyor/ci/59naga/itako-audio-reader-audio-element.svg?style=flat-square">
  </a>
  <a href="https://codeclimate.com/github/itakojs/itako-audio-reader-audio-element/coverage">
    <img src="https://img.shields.io/codeclimate/github/itakojs/itako-audio-reader-audio-element.svg?style=flat-square">
  </a>
  <a href="https://codeclimate.com/github/itakojs/itako-audio-reader-audio-element">
    <img src="https://img.shields.io/codeclimate/coverage/github/itakojs/itako-audio-reader-audio-element.svg?style=flat-square">
  </a>
  <a href="https://gemnasium.com/itakojs/itako-audio-reader-audio-element">
    <img src="https://img.shields.io/gemnasium/itakojs/itako-audio-reader-audio-element.svg?style=flat-square">
  </a>
</p>

Installation
---
```bash
npm install itako-audio-reader-audio-element --save
```

Usage
---

## `ItakoAudioReaderAudioElement(type, options)` -> `reader`

specify instance as first argument of the [Itako constructor](https://github.com/itakojs/itako#usage) as the value of the array.

```html
<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
---
- [itako - a pluggable text reader](https://github.com/itakojs/itako)

Development
---
Requirement global
* NodeJS v5.10.0
* Npm v3.7.1
* Chrome Launcher 49.0.2623 (Mac OS X 10.11.4)

```bash
git clone https://github.com/itakojs/itako-audio-reader-audio-element
cd itako-audio-reader-audio-element
npm install

npm test
```

License
---
[MIT](http://59naga.mit-license.org/)

---
_Source: https://npm.io/package/itako-audio-reader-audio-element · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
