Для всех браузеров
if (microphone_data.media_stream) { microphone_data.media_stream.getTracks().forEach(function (track) { track.stop(); }); }