This commit is contained in:
Timothy Jaeryang Baek
2025-05-05 11:25:00 +04:00
parent 9e1400f055
commit eec7a2afa1
2 changed files with 25 additions and 2 deletions

View File

@@ -239,7 +239,16 @@
audioChunks = [];
recording = false;
};
mediaRecorder.start();
try {
mediaRecorder.start();
} catch (error) {
console.error('Error starting recording:', error);
toast.error($i18n.t('Error starting recording.'));
loading = false;
recording = false;
return;
}
if (transcribe) {
if ($config.audio.stt.engine === 'web' || ($settings?.audio?.stt?.engine ?? '') === 'web') {