
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
audio-play
Advanced tools
Play audio buffer, browser/node-wise.
const play = require('audio-play');
const load = require('audio-loader');
load('./sample.mp3').then(play);
const play = require('audio-play');
//play audio buffer with possible options
let pause = play(audioBuffer, {
//start/end time, can be negative to measure from the end
start: 0,
end: audioBuffer.duration,
//repeat playback within start/end
loop: false,
//playback rate
rate: 1,
//fine-tune of playback rate, in cents
detune: 0,
//volume
volume: 1,
//device (for use with NodeJS, optional)
device: 'hw:1,0',
//possibly existing audio-context, not necessary
context: require('audio-context'),
//start playing immediately
autoplay: true
}, onend?);
//pause/continue playback
play = pause();
pause = play();
//or usual way
let playback = play(buffer, opts?, cb?);
playback.pause();
playback.play();
//get played time
playback.currentTime;
FAQs
Play audio buffer in node or browser
The npm package audio-play receives a total of 150 weekly downloads. As such, audio-play popularity was classified as not popular.
We found that audio-play demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.