From 4d1c4ebf3ee4508818ef15382936031dc00d52d7 Mon Sep 17 00:00:00 2001 From: jschm42 Date: Tue, 7 May 2024 16:14:37 +0200 Subject: [PATCH] Bugfixing of speech-to-text component --- frontend/src/components/common/WhisperComponent.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/common/WhisperComponent.vue b/frontend/src/components/common/WhisperComponent.vue index 88f5ad36..d517b8c5 100644 --- a/frontend/src/components/common/WhisperComponent.vue +++ b/frontend/src/components/common/WhisperComponent.vue @@ -45,7 +45,7 @@ export default { const startRecording = async () => { console.log('Start recording'); - isRecording = true; + isRecording.value = true; mediaStream = await navigator.mediaDevices.getUserMedia({audio: true}); recorder = new RecordRTC(mediaStream, { @@ -78,7 +78,7 @@ export default { } catch (e) { console.error('Failed to send audio file: ', e); } finally { - isRecording = false; + isRecording.value = false; } };