it's highly recommended that you get familiar with SoX to get the most out of Cardioid. Rtfm.
get SoX: brew install sox
npm install cardioid
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
}
}
let examples = "coming soon";