Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/LinusU/node-line-in

🎤 Capture audio with a simple stream interface
https://github.com/LinusU/node-line-in

Last synced: 16 days ago
JSON representation

🎤 Capture audio with a simple stream interface

Awesome Lists containing this project

README

        

# Line In

Capture audio with a simple stream interface.

## Installation

```sh
npm install --save line-in
```

## Usage

```js
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 at a 44100 Hz sample rate is supported.