ramalMr commited on
Commit
8e2c6c9
·
verified ·
1 Parent(s): 3812759

Update dashboard.html

Browse files
Files changed (1) hide show
  1. dashboard.html +7 -1
dashboard.html CHANGED
@@ -267,7 +267,13 @@ async function toggleRecording() {
267
 
268
  async function startRecording() {
269
  try {
270
- const stream = await navigator.mediaDevices.getUserMedia({ audio: true });
 
 
 
 
 
 
271
  mediaRecorder = new MediaRecorder(stream, { mimeType: 'audio/webm' });
272
  audioChunks = [];
273
 
 
267
 
268
  async function startRecording() {
269
  try {
270
+ const stream = await navigator.mediaDevices.getUserMedia({
271
+ audio: {
272
+ channelCount: 1,
273
+ echoCancellation: true,
274
+ noiseSuppression: true
275
+ }
276
+ });
277
  mediaRecorder = new MediaRecorder(stream, { mimeType: 'audio/webm' });
278
  audioChunks = [];
279