export const isSpeechRecognitionSupported = (): boolean => { if ( typeof window !== "undefined" && ("SpeechRecognition" in window || "webkitSpeechRecognition" in window) ) { return true; } return false; };