audio icon indicating copy to clipboard operation
audio copied to clipboard

npmjs 'audio' outdated?

Open stheine opened this issue 7 years ago • 1 comments

on npmjs I find https://www.npmjs.com/package/audio listing 1.2.0 without any documentation. on github, I find releases up to v2.0.0-1, but even those are from August 2016.

so I wonder if this project is still active and maintained...?

in fact, I'm looking for a way to change the speed of a PCM stream. my code looks like:

const lame    = require('lame');
const request = require('request');
const Speaker = require('speaker');

const decoder = new lame.Decoder();
const speaker = new Speaker({
  channels:   2,
  bitDepth:   16,
  sampleRate: 44100,
  mode:       lame.STEREO,
  device:     'hw:1,0',
});

const req = request.get(url);

req
  .pipe(decoder)
  .pipe(speaker);

and I wonder if I can make use of some part of audio to control the playback speed.

stheine avatar Dec 30 '18 11:12 stheine

Use npm i audiojs/audio to install the current version. It is not published to npm yet.

(See #41)

ItzAtomikHD avatar Feb 02 '19 14:02 ItzAtomikHD