Recorderjs icon indicating copy to clipboard operation
Recorderjs copied to clipboard

Can I stop a recording depending on when the user has stopped speaking (Auto pause detection)

Open amit-natani opened this issue 6 years ago • 4 comments

I am using recorder.js for recording audio in my application. I need to send the audio file to the server as the user has stopped speaking. Is there any way in this library by which I can detect auto pause in recording and send the audio to server?

amit-natani avatar Aug 17 '18 13:08 amit-natani

You can use Hark to detect changes in capture volume and fire according events, works very well with voice. Check their demo.

DaveNascimento avatar Sep 14 '18 15:09 DaveNascimento

You can try below link i think it helpful for you. but note it working in only chrome browser. https://jsfiddle.net/53watgqu/

dipak888 avatar Sep 19 '18 05:09 dipak888

You can try below link i think it helpful for you. but note it working in only chrome browser. https://jsfiddle.net/53watgqu/

To use the script with other browser. You just have to replace the AudioContext declaration with this:

var AudioContext = window.AudioContext // Default || window.webkitAudioContext // Safari and old versions of Chrome || false; const ctx = new AudioContext;

i12maroa avatar Feb 12 '19 17:02 i12maroa

this link is useful but can someone tell me how to record the audio in there?

nikhil16-bhaskar avatar Sep 21 '21 12:09 nikhil16-bhaskar