mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-18 07:31:04 +00:00
23 lines
506 B
JavaScript
23 lines
506 B
JavaScript
/*!
|
|
{
|
|
"property": "speechsynthesis",
|
|
"caniuse": "speech-synthesis",
|
|
"tags": ["input", "speech"],
|
|
"authors": ["Cătălin Mariș"],
|
|
"name": "Speech Synthesis API",
|
|
"notes": [{
|
|
"name": "W3C Spec",
|
|
"href": "https://w3c.github.io/speech-api/speechapi.html#tts-section"
|
|
}]
|
|
}
|
|
!*/
|
|
define(['Modernizr'], function(Modernizr) {
|
|
Modernizr.addTest('speechsynthesis', function() {
|
|
try {
|
|
return 'SpeechSynthesisUtterance' in window;
|
|
} catch (e) {
|
|
return false;
|
|
}
|
|
});
|
|
});
|