Timothy Jaeryang Baek преди 2 месеца
родител
ревизия
b5cbac7b28
променени са 2 файла, в които са добавени 9 реда и са изтрити 3 реда
  1. 7 3
      src/lib/components/chat/MessageInput/VoiceRecording.svelte
  2. 2 0
      src/lib/components/notes/NoteEditor.svelte

+ 7 - 3
src/lib/components/chat/MessageInput/VoiceRecording.svelte

@@ -17,6 +17,10 @@
 	export let transcribe = true;
 	export let displayMedia = false;
 
+	export let echoCancellation = true;
+	export let noiseSuppression = true;
+	export let autoGainControl = true;
+
 	export let className = ' p-2.5 w-full max-w-full';
 
 	export let onCancel = () => {};
@@ -192,9 +196,9 @@
 			} else {
 				stream = await navigator.mediaDevices.getUserMedia({
 					audio: {
-						echoCancellation: true,
-						noiseSuppression: true,
-						autoGainControl: true
+						echoCancellation: echoCancellation,
+						noiseSuppression: noiseSuppression,
+						autoGainControl: autoGainControl
 					}
 				});
 			}

+ 2 - 0
src/lib/components/notes/NoteEditor.svelte

@@ -1142,6 +1142,8 @@ Provide the enhanced notes in markdown format. Use markdown syntax for headings,
 							className="p-1 w-full max-w-full"
 							transcribe={false}
 							displayMedia={displayMediaRecord}
+							echoCancellation={false}
+							noiseSuppression={false}
 							onCancel={() => {
 								recording = false;
 								displayMediaRecord = false;