modernizr
Version:
Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.
23 lines (21 loc) • 689 B
JavaScript
/*!
{
"authors": ["Cătălin Mariș"],
"name": "Speech Recognition API",
"notes": [
{
"name": "W3C Web Speech API Specification - The SpeechRecognition Interface",
"href": "https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechreco-section"
},
{
"name": "Introduction to the Web Speech API",
"href": "http://updates.html5rocks.com/2013/01/Voice-Driven-Web-Apps-Introduction-to-the-Web-Speech-API"
}
],
"property": "speechrecognition",
"tags": ["input", "speech"]
}
!*/
define(['Modernizr', 'prefixed'], function(Modernizr, prefixed) {
Modernizr.addTest('speechrecognition', !!prefixed('SpeechRecognition', window));
});