const speaker = new Speaker({
channels: 2,
bitDepth: 16,
sampleRate: 44100,
device: null,
});
stream.pipe(speaker);
I need it for break playing sound. Stream is instance of Readable.
const speaker = new Speaker({
channels: 2,
bitDepth: 16,
sampleRate: 44100,
device: null,
});
stream.pipe(speaker);
I need it for break playing sound. Stream is instance of Readable.
stream.pipelinewhich claims to handle “forwarding errors and properly cleaning up and provide a callback when the pipeline is complete.”Syntax
Here is a link to documentation.