feat: speech recognition auto send toggle

This commit is contained in:
Timothy J. Baek 2023-11-11 13:20:42 -08:00
parent 2a4beae5d9
commit 526fcb02c3
2 changed files with 34 additions and 3 deletions

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