RecordRTC
RecordRTC copied to clipboard
audio recording on safari, noise is particularly loud and severely distorted
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.
Same problem, audio heavily clicks and pops
anything on this one?
Is there any solution on this?