file.js 232 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 'use strict' const recorder = require('../') const fs = require('fs') const file = fs.createWriteStream('test.wav', { encoding: 'binary' }) recorder.record({ sampleRate: 44100, endOnSilence: true }) .stream() .pipe(file)