closeio / mic-recorder-to-mp3

Microphone Recorder to mp3
MIT License
241 stars 135 forks source link

recorded audio's duration is less than the duration assigned #34

Open anishjana opened 3 years ago

anishjana commented 3 years ago

I have made a fiddle , which automatically stops recording after 5 secs. However the audio generated is always less than 5 secs, most of the time around 4.7secs.

How to get precision timing? are some blobs dropped while converting to mp3?

Sam-Apostel commented 3 years ago

Not the author of this package but because of a pop in the start of a recording there was a delay added. You can disable the delay by passing the option startRecordingAt: 0 together with the bitrate or you can increase the duration you record for by 300 milliseconds.