From b2e5f132b39cd079fef86266f16b3a4a40c0f113 Mon Sep 17 00:00:00 2001 From: n8fr8 Date: Mon, 6 Dec 2021 09:37:59 -0500 Subject: [PATCH] try pcm codec --- src/components/VoiceRecorder.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/VoiceRecorder.vue b/src/components/VoiceRecorder.vue index bfac14d..bca72f0 100644 --- a/src/components/VoiceRecorder.vue +++ b/src/components/VoiceRecorder.vue @@ -330,8 +330,8 @@ export default { startRecording() { var constraints = { audio: { - channelCount: 1, - sampleRate: 16000, + // channelCount: 1, + // sampleRate: 16000, echoCancellation: false, autoGainControl: true, noiseSuppression: true, @@ -344,7 +344,7 @@ export default { .then((stream) => { this.recorder = RecordRTC(stream, { type: "audio", - mimeType: "audio/webm", + mimeType: "audio/webm;codecs=pcm", }); this.recorder.startRecording(); this.state = State.RECORDING;