refac: audio input

This commit is contained in:
Timothy Jaeryang Baek committed 2025-01-02 02:32:51 -08:00
1 parent fab82b51de
commit 43964de675
2 files changed
+14 -2

No files matched your search

@@ -217,7 +217,13 @@
const startRecording = async () => {
if ($showCallOverlay) {
if (!audioStream) {
audioStream = await navigator.mediaDevices.getUserMedia({ audio: true });
audioStream = await navigator.mediaDevices.getUserMedia({
audio: {
echoCancellation: true,
noiseSuppression: true,
autoGainControl: true
}
});
}
mediaRecorder = new MediaRecorder(audioStream);