projekt-7/Script_Speech_recognition/kontrola_api.js

8 lines
293 B
JavaScript
Raw Normal View History

// Skontroluj podporu Web Speech API
window.SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition;
if (!window.SpeechRecognition) {
console.error('Tento prehliadač nepodporuje Web Speech API');
} else {
console.log('Web Speech API je podporované');
}