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

Issues related in the implementation of annyang js #436

Open
josephpramodh opened this issue Jun 4, 2021 · 0 comments
Open

Issues related in the implementation of annyang js #436

josephpramodh opened this issue Jun 4, 2021 · 0 comments

Comments

@josephpramodh
Copy link

<script src="//cdnjs.cloudflare.com/ajax/libs/annyang/2.6.0/annyang.min.js"></script> <script> if (annyang) { var commands = { 'play music': function(){ document.getElementById("mymusic").play(); }, 'pause music': function(){ document.getElementById("mymusic").pause(); }, 'goto home': function(){ location.href='registration.html'; }, 'goto about': function(){ location.href='about.html'; }, 'goto login': function(){ location.href='login.html'; }, 'goto registration' : function(){ location.href='new user.html' } }; annyang.addCommands(commands); annyang.start(); } </script>

How can I make my music button play or pause, using my voice commands, 'play music ' and 'pause music'

I want to add submit option using the submit voice command, how can I write the code for the submit option
Help with these two issues 😭😭😭

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

1 participant