modernizr
Version:
Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.
19 lines (17 loc) • 473 B
JavaScript
/*!
{
"authors": ["Cătălin Mariș"],
"name": "Speech Synthesis API",
"notes": [
{
"name": "W3C Web Speech API Specification - The SpeechSynthesis Interface",
"href": "https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#tts-section"
}
],
"property": "speechsynthesis",
"tags": ["input", "speech"]
}
!*/
define(['Modernizr'], function(Modernizr) {
Modernizr.addTest('speechsynthesis', 'SpeechSynthesisUtterance' in window);
});