feat: speech recognition auto send toggle

This commit is contained in:
Timothy J. Baek committed 2023-11-11 13:20:42 -08:00
1 parent 2a4beae5d9
commit 526fcb02c3
2 files changed
+34 -3

No files matched your search

+3
View File
@@ -235,6 +235,9 @@
// Restart recognition after it ends
console.log('recognition ended');
speechRecognitionListening = false;
if (prompt !== '' && settings?.speechAutoSend === true) {
submitPrompt(prompt);
}
};
// Event triggered when an error occurs