audio

Digital audio in JavaScript.

  • audio

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
audio
1.2.08 years ago9 years agoMinified + gzip package size for audio in KB

Readme

Audio in JavaScript.

An object that enables you to store, read, and write PCM audiopcm data more easily. You can use algorithmic functionsnpm-audiojs for any type of audio manipulation, such as compression or conversion to and from different audio formats. This object works as the building block for audio in JavaScript, and Audio.jsaudiojs is a suite of common audio utilities based on top of it.
var test = new Audio({
  sample: [34, 334, -23, 0, ...pulses], // Pulse data or buffer
  sampleRate: 44100, // Sample rate
  bitDepth: 16, // Bit depth
  length: 44100 * 10, // 10s length
  byteOrder: 'LE', // Either BE or LE
  // ...
});
See more options and usage in the documentation.

Usage

$ npm install --save audio
For use in the browser use Browserifybrowserify.
See the "docs" folder for more information on using Audio.

Also See

- Audio.jsaudiojs: A suite of utilities based around this object. - node-speakernode-speaker: Write PCM data to the speakers in Node.js.

Credits

| !jamenavatar | |:---:| | Jamen Marzoniegithub |

License

MIT © Jamen Marzonie