MeysamSh commited on
Commit
4695ac2
·
verified ·
1 Parent(s): 453d218

Update Web/script.js

Browse files
Files changed (1) hide show
  1. Web/script.js +1 -1
Web/script.js CHANGED
@@ -38,7 +38,7 @@ function startRecording() {
38
  navigator.mediaDevices.getUserMedia({ audio: true }).then(function (stream) {
39
  audioContext = new (window.AudioContext || window.webkitAudioContext)();
40
  document.getElementById("formats").innerText =
41
- "Sample rate: " + audioContext.sampleRate + " Hz, Duration: " + audioContext.duration.toFixed(2) + " Sec";
42
 
43
  gumStream = stream;
44
  input = audioContext.createMediaStreamSource(stream);
 
38
  navigator.mediaDevices.getUserMedia({ audio: true }).then(function (stream) {
39
  audioContext = new (window.AudioContext || window.webkitAudioContext)();
40
  document.getElementById("formats").innerText =
41
+ "Sample rate: " + audioContext.sampleRate + " Hz";
42
 
43
  gumStream = stream;
44
  input = audioContext.createMediaStreamSource(stream);