# audioclip

> Easily load and play all or part of short audio files in the browser.

Latest version **0.2.0** (published 2016-01-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install audioclip
pnpm add audioclip
yarn add audioclip
bun add audioclip
```

## 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.2.0 |
| Published | 2016-01-11 |
| First published | 2016-01-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Scott Glazer |
| Maintainers | scottglz |

## Links

- npm: https://www.npmjs.com/package/audioclip
- Repository: https://github.com/scottglz/audioclip
- Homepage: https://github.com/scottglz/audioclip#readme
- Issues: https://github.com/scottglz/audioclip/issues
- npm.io page: https://npm.io/package/audioclip

## Dependencies (1)

- [es6-promise-polyfill](https://npm.io/package/es6-promise-polyfill.md) ^1.2.0

## Recent versions

- 0.2.0 (latest) — 2016-01-11
- 0.1.3 — 2016-01-11
- 0.1.1 — 2016-01-10
- 0.1.0 — 2016-01-10

## README

# Audioclip

Easily load and play (over and over again if you like) all or part of short(ish) audio files in the browser. 

Uses the Web Audio API when available (which supports precise play length and multiple instances of the
same sound playing at once), otherwise falls back to HTML5 &lt;audio&gt; tags. If those aren't available either
(Internet Explorer 8 and below, basically), a graceful degradation to silence occurs.

# API

```javascript
var clip = new AudioClip(url); // Load the clip

clip.play(); // Play entire clip

clip.play(start_time_in_seconds);  // Play clip from start time to end

clip.play(start_time_in_seconds, duration_in_seconds); // Play clip from start time to start time + duration
```

# Licence

MIT

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