Disclose browser speech processing before microphone use
Build and publish frontend / publish (push) Successful in 43s

This commit is contained in:
Ein Anderssono
2026-10-15 09:56:46 +02:00
parent 49ee16a688
commit 1f9fc464d4
4 changed files with 21 additions and 2 deletions
+2 -1
View File
@@ -201,7 +201,8 @@
function getState() { return state; }
function getSettings() { return {...settings}; }
function getVoices() { return availableVoices(); }
return {startListening, stopListening, speak, cancelSpeech, stopAll, update, getState, getSettings, getVoices};
function supportsRecognition() { return Boolean(win.SpeechRecognition || win.webkitSpeechRecognition); }
return {startListening, stopListening, speak, cancelSpeech, stopAll, update, getState, getSettings, getVoices, supportsRecognition};
}
root.GameVoice = {createVoiceController, DEFAULT_SETTINGS, parseVoiceCommand, loadSettings, saveSettings};