New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

audio-mixer-stream

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

audio-mixer-stream

A very simple nodejs readable stream that mixes audio streams

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-85.71%
Maintainers
1
Weekly downloads
 
Created
Source

audio-mixer-stream

Overview

This is a very simple node.js readable stream that mixes audio from other readable streams.

Sample Usage

const AudioMixer = require('audio-mixer-stream')
const { ToneStream, utils } = require('tone-stream')
const Speaker = require('speaker')

const format = {
	sampleRate: 8000, 
	bitDepth: 16,
	channels: 1
}

const ts1 = new ToneStream(format)
const ts2 = new ToneStream(format)

ts1.concat(utils.gen_music_scale("F5 A5 B5 D5 F5 C5 D5 G4", 100, 0, 8000))
ts2.concat(utils.gen_music_scale("F6 A3 A3 B2 G7 E2 C3 F4", 100, 0, 8000))

const mixer = new AudioMixer(format, [ts1, ts2]);

const s = new Speaker(format)
mixer.pipe(s)

More examples

See here.

FAQs

Package last updated on 10 Apr 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc