web-audio-recording-tests icon indicating copy to clipboard operation
web-audio-recording-tests copied to clipboard

Safari cut 0.80 sec from the recorded audio

Open dev-ahmad opened this issue 4 years ago • 1 comments

@kaliatech @leocabrallce That you guys for this amazing repo!

I have a small issue while I'm recording on Safari, when you try to record your voice, then play the recorded voice, Safari trims about 0.80 sec from the recorded audio, is it an issue from Safari?

also while I'm searching for other recorder libraries, I found this issue on many repos on GitHub.

so based on your knowledge guys, is it an issue from Safari for all recorders?

Thank you

dev-ahmad avatar Jan 06 '21 02:01 dev-ahmad

It's been a while since I messed with this and don't have time to look into the details, but I remember having similar issues when I built these tests, and at the time thinking it was likely a timing issue in Safari related to :

  • worker processing the last sample message
  • worker processing the final dump message

You can see my related comment in the code here:

  • https://github.com/kaliatech/web-audio-recording-tests/blob/master/src/shared/RecorderService.js#L285-L286

I don't remember if I ever verified if that was actually the problem, but you might start there.

kaliatech avatar Jan 06 '21 13:01 kaliatech