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

speaker

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

speaker

Output raw PCM audio data to the speakers

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.6K
decreased by-22.09%
Maintainers
1
Weekly downloads
 
Created
Source

node-speaker

Output raw PCM audio data to the speakers

A Writable stream instance that accepts raw PCM audio data and outputs it to the speakers. The output is backed by mpg123's audio output modules, which in turn use any number of audio backends commonly found on Operating Systems these days.

Installation

Simply compile and install node-speaker using npm:

$ npm install speaker

Example

var Speaker = require('speaker')

// Create the Speaker instance
var speaker = new Speaker({
  channels: 2,          // 2 channels
  bitDepth: 16,         // 16-bit samples
  sampleRate: 44100     // 44,100 Hz sample rate
});

// Raw PCM data from stdin gets piped into the speaker
process.stdin.pipe(speaker);

API

Speaker class

TODO: document...

Keywords

FAQs

Package last updated on 24 Oct 2012

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