From d90aa3bce27f0f6b078c0fafcc762b683f8a9d8c Mon Sep 17 00:00:00 2001 From: N-Pex Date: Mon, 8 Mar 2021 15:35:52 +0100 Subject: [PATCH] Update VoiceRecorder.vue Fix issue #87 --- src/components/VoiceRecorder.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/VoiceRecorder.vue b/src/components/VoiceRecorder.vue index fd668fd..7e8f361 100644 --- a/src/components/VoiceRecorder.vue +++ b/src/components/VoiceRecorder.vue @@ -266,7 +266,6 @@ export default { methods: { close() { this.stopRecordTimer(); - this.recorder = null; this.$emit("close"); }, mouseUp(ignoredEvent) { @@ -312,7 +311,7 @@ export default { const MicRecorder = require("mic-recorder-to-mp3"); // Start recording. Browser will request permission to use your microphone. this.recorder = new MicRecorder({ - bitRate: 128, + bitRate: 32, }); this.recorder .start() @@ -346,8 +345,8 @@ export default { this.getFile(true); }, send() { - console.log("Send:", this.recordedFile); - //this.$emit("file", {file: file}); + //console.log("Send:", this.recordedFile); + this.$emit("file", {file: this.recordedFile}); // const player = new Audio(URL.createObjectURL(file)); // player.play(); },