streamproc / MediaStreamRecorder

Cross browser audio/video/screen recording. It supports Chrome, Firefox, Opera and Microsoft Edge. It even works on Android browsers. It follows latest MediaRecorder API standards and provides similar APIs.
https://www.webrtc-experiment.com/msr/
MIT License
2.63k stars 563 forks source link

How to detect when the user stop talking to the microphone? #133

Open pons1991 opened 7 years ago

pons1991 commented 7 years ago

Hello, I am working in the mediarecorder for a month. I am still wondering how to figure out if the user stop talking to the microphone?

muaz-khan commented 7 years ago

Something like this?

Or this:

var options = {};
var speechEvents = hark(stream, options);

speechEvents.on('speaking', function() {
    // restarted speaking
});

speechEvents.on('stopped_speaking', function() {
    // stopped speaking
});
marcoswmv commented 3 years ago

Could anyone tell the iOS equivalent of hark.js? i'm trying to detect when the starts and stops speaking to send mediastate to a server

alayor commented 10 months ago

@marcoswmv were you able to find some other tool?