|
@@ -161,7 +161,13 @@
|
|
const startRecording = async () => {
|
|
const startRecording = async () => {
|
|
startDurationCounter();
|
|
startDurationCounter();
|
|
|
|
|
|
- stream = await navigator.mediaDevices.getUserMedia({ audio: true });
|
|
|
|
|
|
+ stream = await navigator.mediaDevices.getUserMedia({
|
|
|
|
+ audio: {
|
|
|
|
+ echoCancellation: true,
|
|
|
|
+ noiseSuppression: true,
|
|
|
|
+ autoGainControl: true
|
|
|
|
+ }
|
|
|
|
+ });
|
|
mediaRecorder = new MediaRecorder(stream);
|
|
mediaRecorder = new MediaRecorder(stream);
|
|
mediaRecorder.onstart = () => {
|
|
mediaRecorder.onstart = () => {
|
|
console.log('Recording started');
|
|
console.log('Recording started');
|