mattdiamond / Recorderjs

A plugin for recording/exporting the output of Web Audio API nodes
4.16k stars 1.46k forks source link

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

Open amit-natani opened 6 years ago

amit-natani commented 6 years ago

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?

DaveNascimento commented 5 years ago

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

dipak888 commented 5 years ago

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

i12maroa commented 5 years ago

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;

nikhil16-bhaskar commented 2 years ago

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