/audio-slice

Slice audio stream to some duration

Primary LanguageJavaScriptMIT LicenseMIT

audio-slice Build Status stable

Slice input audio stream to the duration, i. e. sound after N seconds will not be played and stream will end. Useful to force input stream to end.

Usage

npm install audio-slice

var Sine = require('audio-oscillator/sine');
var Slice = require('audio-slice');
var Speaker = require('audio-speaker');

Generator().pipe(Slice(2)).pipe(Speaker());