RecordRTC icon indicating copy to clipboard operation
RecordRTC copied to clipboard

audio recording on safari, noise is particularly loud and severely distorted

Open luckyxue opened this issue 4 years ago • 3 comments

I'm trying to use a StereoAudioRecorder to record audio. Its working on all other browsers, but on Safari the audio, when the sampling rate is set to 16khz, the audio noise played back or saved is particularly large and severely distorted.

var options = {
        type: 'audio',
        numberOfAudioChannels: isEdge ? 1 : 2,
        checkForInactiveTracks: true,
        bufferSize: 16384
    };

    if(isSafari || isEdge) {
        options.recorderType = RecordRTC.StereoAudioRecorder;
    }

    if(navigator.platform && navigator.platform.toString().toLowerCase().indexOf('win') === -1) {
        options.sampleRate = 48000; // or 44100 or remove this line for default
    }

    if(isSafari) {
        options.desiredSampRate = 16000;
        options.sampleRate = 44100;
        options.bufferSize = 4096;
        options.numberOfAudioChannels = 1;
    }

Thank you for any help. And please let me know if any more details would be helpful.

luckyxue avatar Jun 21 '20 16:06 luckyxue

Same problem, audio heavily clicks and pops

numerized avatar Aug 28 '20 07:08 numerized

anything on this one?

augustnmonteiro avatar Mar 26 '21 20:03 augustnmonteiro

Is there any solution on this?

overjoied avatar Apr 29 '21 03:04 overjoied