I use https://github.com/mattdiamond/Recorderjs library to capture the audio.
recorder.exportWAV((data)->
fileReader = new FileReader;
fileReader.onload = (blob) ->
blob = blob.target.result;
send(btoa(blob))
fileReader.readAsBinaryString(data)
)
But I got the following error: Must use single channel (mono) audio, but WAV header indicates 2 channels.
When I use exportMonoWAV
the quality of audio is very low and recognition results are poor.
How can I pass Mono WAV without losing the quality?