Skip to content

Capture audio with a simple stream interface

Notifications You must be signed in to change notification settings

nfriedly/node-line-in

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Line In

Capture audio with a simple stream interface.

Installation

npm install --save line-in

Usage

const LineIn = require('line-in')
const Speaker = require('speaker')

const input = new LineIn()
const output = new Speaker({ signed: true })

input.pipe(output)

API

new LineIn()

Returns a Readable stream that emits chunks of raw audio data.

Currently only 2-channel 16-bit little-endian signed integer pcm encoded data is supported.

About

Capture audio with a simple stream interface

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 88.0%
  • Python 8.1%
  • JavaScript 3.9%