0.1.3 • Published 6 years ago
cardioid v0.1.3
Cardioid
A SoX leveraged recording module for Node.
Dependencies
it's highly recommended that you get familiar with SoX to get the most out of Cardioid. Rtfm.
get SoX: brew install sox
Install
npm install cardioid
Configure:
let config = {
// logEnable must be true and quiet must be false to get a log.
logEnable: false,
// debugEnable must be true and quiet must be false to get a debug log.
debugEnable: false,
quiet: true,
bitDepth: '16',
sampleRate: '16k',
channelCount: '1',
// 0 is little endian, 1 is big endian
endian: 0,
type: 'raw',
encoding: 'signed',
threshold: {
silence: 5,
breakpoint: 0.1,
min: null,
max: null
}
}
Examples:
let examples = "coming soon";