MediaStreamRecorder icon indicating copy to clipboard operation
MediaStreamRecorder copied to clipboard

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

Open pons1991 opened this issue 8 years ago • 3 comments

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?

pons1991 avatar Jun 13 '17 05:06 pons1991

Something like this?

  • https://github.com/muaz-khan/WebRTC-Experiment/tree/master/hark

Or this:

  • https://github.com/muaz-khan/RTCMultiConnection/blob/master/v2.2.2/dev/SoundMeter.js
var options = {};
var speechEvents = hark(stream, options);

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

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

muaz-khan avatar Jun 13 '17 14:06 muaz-khan

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

marcoswmv avatar Jan 15 '21 11:01 marcoswmv

@marcoswmv were you able to find some other tool?

alayor avatar Oct 31 '23 22:10 alayor