question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Noise when recording voice from safari browser

See original GitHub issue

Description

I have implemented audio record feature in my website.But audio record result me recorded audio with noise.

Steps to reproduce

go to https://qa.myu.co on safari browser. then login using username and password use username:gituser use password:123456

then u will find the audio icon click on that than use it to record audio.

Results

After that when you replay the audio you recorded than you will find the issue with the recorded audio.

Expected

Need recorded voice to be clear

Actual

The recoded audio on safari have noise so i can’t understand the audio.

Additional Information

Please include any additional information necessary here. Including the following:

versions

VIDEOJS: Using video.js 6.9.0 with videojs-record 2.1.2 + videojs-wavesurfer 2.2.2 and recordrtc 5.4.6

videojs

browsers

safari

platform

what platforms (operating systems and devices) are affected? mac

Code used by me is

 var obj = document.createElement('audio');
      $(obj).attr('id', 'myAudio');
      $(obj).attr('class', 'video-js vjs-default-skin');
      $(obj).attr('style', 'width:80%; margin:auto;');
      $("#rec_audio_div").append(obj);
      playerAudio = videojs("myAudio", {
        controls: true,
        width: 400,
        height: 200,
        controlBar: {
          fullscreenToggle: false,
          volumePanel: false
        },
        plugins: {
          wavesurfer: {
            src: "live",
            waveColor: "#36393b",
            progressColor: "black",
            debug: true,
            cursorWidth: 1,
            msDisplayMax: 20,
            hideScrollbar: true
          },
          record: {
            audio: true,
            video: false,
            maxLength: that.audioVideoLimit
          }
        }
      },  function() {
    // print version information at startup
    videojs.log('Using video.js', videojs.VERSION,
        'with videojs-record', videojs.getPluginVersion('record'),
        '+ videojs-wavesurfer', videojs.getPluginVersion('wavesurfer'),
        'and recordrtc', RecordRTC.version);
  });
  playerAudio.on('deviceError', function() {
    that.alertOnDeviceError(playerAudio.deviceErrorCode);
    console.log('device error:', playerAudio.deviceErrorCode);
  });
  playerAudio.on('error', function(error) {
    that.alertOnDeviceError(error);
    console.log('error:', error);
  });
  // user clicked the record button and started recording
  playerAudio.on('startRecord', function() {
    console.log('started recording!');
    that.state = 1;
    progress=0;
    startAudioTime();
  
  });
  // user completed recording and stream is available
  playerAudio.on('finishRecord', function() {
    that.state = 2;
    clearInterval(recordTimer);
  });

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:25 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
dirkk0commented, Oct 13, 2018

@thijstriemstra yes, it works: Safari 12 Mac OSX, and Safari 11 ( I think, I am still on iOS 11.3.) (whoever tries this, remember to use https)

1reaction
dirkk0commented, Jun 17, 2018

Actually it doesn’t work at all in Safari11/MacOSX. You can only chose ‘Microphone’ and only ‘ogg’ and after recording, nothing happens (i.e. I don’t hear anything). The error on the console is: “Unhandled Promise Rejection: AbortError: The operation was aborted.” RecordRTC: 1550

On Chrome, it works fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change the sound input settings on Mac - Apple Support
On your Mac, choose Apple menu > System Settings, then click Sound in the sidebar. (You may need to scroll down.) Click Input...
Read more >
Noise when recording voice in Safari browser #17 - GitHub
I'm able to record the audio in Safari Version 12.0 (13606.2.11) Mac OSX High Sierra, but the recorded sound is distorted.
Read more >
What to do if your looms don't have sound in Safari
To ensure that audio is played, first open the Safari menu and click Preferences. On the Preferences window, click on Websites, then Auto-Play....
Read more >
Troubleshooting audio problems - Otter.ai Help Center
This happens because the microphone in the headphone is listening to external audio, and your headphone's microphone will not record audio ...
Read more >
Audio Hijack: Record Any Audio on MacOS - Rogue Amoeba
Set any application as your source in Audio Hijack, then hit the record button to save its audio! Grab Device Audio. Audio Hijack...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found