Comments (7)
Using the existing mechanism SGTM. Promises could be a later add-on that deals with all error cases.
Is there a linkable spec concept for "caller frame or any of its parents have receive user activation since their last load" ready use here? Is there some other spec which already uses this condition? (Sounds like something that would be defined in HTML, didn't go to look.)
from speech-api.
I don't think there is a linkable spec concept for this. This gets us into the guts of user activation which is not well specced at all at the moment. Fixing that is explored in whatwg/html#1903.
from speech-api.
https://html.spec.whatwg.org/multipage/interaction.html#triggered-by-user-activation itself does need some work, that is true, but how about the "have receive user activation since their last load" aspect of this? @mounirlamouri, assuming this should match media elements and web audio, what's the right spec incantation?
from speech-api.
For both specs, we do not require a user activation. We use a concept of "allowed to play" or "allowed to start" and we let the UA define when things are allowed. Because this is an intervention, UA have different rules and we decided that what mattered was discoverability of these rules by the website.
Regarding user activation, we have some folks working on a proper definition for it.
from speech-api.
OK, so that is https://html.spec.whatwg.org/multipage/media.html#allowed-to-play.
@csharrison, referencing that concept directly won't work because it's defined as specific to media elements. Do you think an analogous definition for https://w3c.github.io/speech-api/#speechsynthesis would be best, or to generalize this concept and use it for all call sites? @mounirlamouri opinions?
from speech-api.
For Web Audio, we used https://webaudio.github.io/web-audio-api/#allowed-to-start so it seems that there is precedent to re-define a concept.
from speech-api.
I've altered the title of this issue to be more general, and we can discuss the precise rules for allowing speak in #35.
from speech-api.
Related Issues (20)
- Define how to load custom voices HOT 3
- Can I capture UserMedia stream and do processing on that along with using SpeechRecognition HOT 1
- SpeechRecognition ends after unspecified time
- Bubbling model for SpeechSynthesisUtterance HOT 1
- need to improve speech recognition in conversation between multiple speakers
- Speach Destination HOT 1
- Requirements for SpeechSynthesisErrorEvent HOT 1
- Offline/on-device speech recognition HOT 2
- Could we have web speech API support IPA for speech synthesis voice language HOT 2
- Arabic TTS Web Speech is Missing some letters
- Interaction with screen readers and other assistive technology? HOT 1
- getVoices() is supposed to be user agent dependent, but appears not to be. HOT 1
- Android issue HOT 1
- Could not get isFinal == true HOT 9
- Feature request: SpeechRecognition pause/resume HOT 2
- Multiple Issues HOT 1
- speechSynthesis: utterance with lang but not voice
- Why is SpeechRecognition not working correctly in Safari?
- Clear Privacy Contracts HOT 1
- Continuously listening
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from speech-api.