diff --git a/www/app/components/record.js b/www/app/components/record.js index d1a71093..f683f2b7 100644 --- a/www/app/components/record.js +++ b/www/app/components/record.js @@ -97,7 +97,11 @@ export default function Recorder(props) { document.getElementById("play-btn").disabled = false; } else { const stream = await navigator.mediaDevices.getUserMedia({ - audio: { deviceId }, + audio: { + deviceId, + noiseSuppression: false, + echoCancellation: false, + }, }); await record.startRecording(stream); props.setStream(stream); diff --git a/www/app/components/webrtc.js b/www/app/components/webrtc.js index 62bebb0d..f78608cd 100644 --- a/www/app/components/webrtc.js +++ b/www/app/components/webrtc.js @@ -2,7 +2,8 @@ import { useEffect, useState } from "react"; import Peer from "simple-peer"; // allow customization of the WebRTC server URL from env -const WEBRTC_SERVER_URL = process.env.NEXT_PUBLIC_WEBRTC_SERVER_URL || "http://127.0.0.1:1250/offer"; +const WEBRTC_SERVER_URL = + process.env.NEXT_PUBLIC_WEBRTC_SERVER_URL || "http://127.0.0.1:1250/offer"; const useWebRTC = (stream) => { const [data, setData] = useState({