2023-06-02 17:01:24 +03:00
|
|
|
export function isSpeechRecognitionSupported() {
|
|
|
|
if (
|
2023-06-03 21:09:00 +03:00
|
|
|
typeof window !== "undefined" &&
|
2023-06-02 17:01:24 +03:00
|
|
|
("SpeechRecognition" in window || "webkitSpeechRecognition" in window)
|
|
|
|
) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|