Recorderjs
Recorderjs copied to clipboard
Can I stop a recording depending on when the user has stopped speaking (Auto pause detection)
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?
You can use Hark to detect changes in capture volume and fire according events, works very well with voice. Check their demo.
You can try below link i think it helpful for you. but note it working in only chrome browser. https://jsfiddle.net/53watgqu/
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;
this link is useful but can someone tell me how to record the audio in there?