mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-25 16:13:47 +03:00
10 lines
211 B
TypeScript
10 lines
211 B
TypeScript
|
export function isSpeechRecognitionSupported() {
|
||
|
if (
|
||
|
typeof window !== undefined &&
|
||
|
("SpeechRecognition" in window || "webkitSpeechRecognition" in window)
|
||
|
) {
|
||
|
return true;
|
||
|
}
|
||
|
return false;
|
||
|
}
|