MediaStreamRecorder
MediaStreamRecorder copied to clipboard
How to detect when the user stop talking to the microphone?
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?
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
});
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 were you able to find some other tool?