2

I am using recorder.js to record audio. When I download .wav file it is 48KHz but I want in 16KHz, mono channel.

function init(config) {
            sampleRate = config.sampleRate; //to 16000
            numChannels = config.numChannels; //to 1
            initBuffers();
        }

It changes the recorded voice (like a voice of the robot).

Help me to get a voice in 16KHz, mono .wav file in a normal voice. (Thanx in Advance)

My Code Is Here

  • I have followed this forum https://stackoverflow.com/questions/16296645/decrease-bitrate-on-wav-file-created-with-recorderjsAnd then I am able to get my desired result. – Haider Ali Shafqat Mar 01 '18 at 09:56
  • 1
    You can get Recorder.js with downsampling here: https://gitlab.com/haideralishafqat/WebAudioRecorder.git – Haider Ali Shafqat Mar 01 '18 at 09:58
  • I tried your code. When I downloaded the wav files the sample rate has gone down to 16000 but the audio file length is 0 therefore cannot play it back. – Ishara Amarasekera Sep 06 '19 at 13:57

0 Answers0