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

annyang.trigger #357

Open
lawrencenull opened this issue Jul 18, 2018 · 2 comments
Open

annyang.trigger #357

lawrencenull opened this issue Jul 18, 2018 · 2 comments

Comments

@lawrencenull
Copy link

Expected Behavior

The annyang.trigger event should pass a command and be able to accept tags, etc even (especially) when annyang is not listening. When speech isn't available an input field is normally shown, and it would be nice to have a trigger event that would parse it the exact same as a speech command. This would provide a great deal of continuity to the end user.

Current Behavior

Possible Solution

annyang.trigger('go to *tag') function(tag) {
var str = tag;
str = str.replace(/\s+/g, "");
window.open("https://" + str);
},

Steps to Reproduce (for bugs)

Context

Your Environment

  • Version used:
  • Browser Name and version:
  • Operating System and version (desktop or mobile):
  • Link to your project:
@nerkdesign
Copy link

Hi, did you try this solution ? I'm interesting to use annyang using a input text and your solution if it works, can be a clue to do that. thanks

@lawrencenull
Copy link
Author

Nope, what I ended up doing was parse the input value separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants