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

Implementation of annyang #435

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

Implementation of annyang #435

josephpramodh opened this issue Jun 4, 2021 · 0 comments

Comments

@josephpramodh
Copy link

Sir, I'm trying to work on a voice based mail for blind using Annyang JS but I'm failing to implement it, so kindly help me to resolve it!!!

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