gillesdemey / node-record-lpcm16

:microphone: Records a 16-bit signed-integer linear pulse modulation code encoded audio file.
ISC License
212 stars 59 forks source link

Please Merge the git commit #50

Closed Sathishabm210 closed 5 years ago

Sathishabm210 commented 5 years ago

Hi

We are facing issue with the version 0.3.1 related to sox on windows. Can you please merge the code of git commit number: 76d734f64c09e75012ee070dcf5480cab99a0a6a.

Here I need audioType should be configurable like below code. Its was not there in latest released version. Please let me know is there any alternative solution to fix this?

case 'sox':
  cmd = "sox"
  audioType = "wav"
  if (options.audioType) audioType = options.audioType
  if (options.asRaw) audioType = "raw"
  cmdArgs = [
    '-q',                                   // show no progress
    '-t', 'waveaudio',
    '-d',
    '-r', options.sampleRate.toString(),    // sample rate
    '-c', '1',                              // channels
    '-e', 'signed-integer',                 // sample encoding
    '-b', '16',                             // precision (bits)
    '-t', audioType,  // audio type
    '-'
  ]
  break

We need this urgent. Thanks in advance.