Skip to content
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

Expose special HTML content as voice-activable commands in UWP #26372

Open
jdm opened this issue Apr 30, 2020 · 2 comments
Open

Expose special HTML content as voice-activable commands in UWP #26372

jdm opened this issue Apr 30, 2020 · 2 comments

Comments

@jdm
Copy link
Member

@jdm jdm commented Apr 30, 2020

XAML buttons in UWP automatically get support for voice commands on HoloLens devices. It could be a great extension of this to recognize certain parts of web content (effectively piggybacking off of accessibility roles) and expose them to the same mechanism.

@jdm jdm added this to To do in UWP port via automation Apr 30, 2020
@jdm
Copy link
Member Author

@jdm jdm commented Apr 30, 2020

I imagine this would look something like:

  • when certain roles are recognized by HTML element attributes being set, notify the document
  • the document is responsible for creating a mapping (ie. uuid) to the element and notifying the embedder about the element and its role
  • the embedder exposes a new voice command based on the text provided with the event
  • if the voice command is recognized, the embedder activates a servo API with the associated identifier
  • this API sends a message to the document which retrieves the original element and invokes a trusted click event on it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
UWP port
  
To do
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.