-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web Speech Synthesis test #1049
Conversation
@alrra Yes, I ran into it while researching Safari in iOS 7... I guess it's P.S. Apparently Safari 7 for the Desktop should support On Mon, Sep 30, 2013 at 1:06 AM, Cătălin Mariș notifications@github.comwrote:
|
!*/ | ||
|
||
define(['Modernizr', 'prefixed'], function (Modernizr, prefixed) { | ||
Modernizr.addTest('speechsynthesis', !!prefixed('SpeechSynthesisUtterance', window)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is SpeechSynthesisUtterance
prefixed in iOS7? Peter Gaston's article suggests not, and it isn't prefixed in Chrome Canary either, so maybe simply 'SpeechSynthesisUtterance' in window
would do the job?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is
SpeechSynthesisUtterance
prefixed in iOS7 ?
No, it's not.
and it isn't prefixed in Chrome Canary either
AFAIK it's not supported in Chrome Canary yet (I'm using: Version 32.0.1655.0 canary
on Mac OS X and Google Chrome is up to date
). Am I missing something ? Is it behind a flag ?
so maybe simply
'SpeechSynthesisUtterance'
in window would do the job?
For now, yes.
@stucox Do you want me to make the change ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it's behind the "experimental Web Platform features" flag – with that enabled on my machine, window.SpeechSynthesisUtterance
exists in 32.0.1655.0 canary (haven't actually tried using it…)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"experimental Web Platform features" flag
Ah ok, I missed that one. Thanks!
@stucox made the change. :)
W3C Web Speech API Specification - The SpeechSynthesis Interface: https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#tts-section
Awesome, LGTM – thanks. |
Web Speech Synthesis test
Side note: AFAIK, only Safari for iOS 7 supports this feature.