Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/LinusU/node-line-in
- Owner: LinusU
- Created: 2016-05-21T21:38:39.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-07T06:56:35.000Z (over 7 years ago)
- Last Synced: 2024-04-14T05:28:12.657Z (7 months ago)
- Language: C++
- Homepage:
- Size: 93.8 KB
- Stars: 33
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
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.