Browsing the Web is usually an endless round of clicks, taps and scrolling.
That’s changed with Annyang, an incredibly simple JavaScript library that enables voice commands for web sites.
Maybe not the most user-friendly for brochure sites, it’s great for complex applications where giving the user a series of verbal shortcuts to different sections, such as ‘Open my account’ or ‘Save for later’, could potentially save a lot of frustration and visits to the site map.
Any browser that supports SpeechRecognition is supported and any browser that doesn’t is left unaffected.
A simple example would look something like this:
<script src='annyang.min.js'></script>
<script>
if(annyang)
{
var commands = {
'hello': function()
{
console.log('world');
}
}
annyang.init(commands);
annyang.start();
}
</script>
Take a look at the demo. It may not be the most responsive input method, and you’ll feel a bit foolish on your morning commute; but the possibilities are tantalizing.
Have you used voice control for a web interface? What difficulties did you encounter? Let us know in the comments.
WDD Staff
Read Next
A Closer Look at WordPress 6.7: “Rollins”
The WordPress 6.7 release, named “Rollins” honors jazz legend Sonny Rollins, renowned for his improvisational mastery and innovative contributions to jazz. His iconic compositions, like “St. Thomas” and “Oleo,” reflect…
Why Responsive Design is Failing Modern Users
Yet, despite its widespread adoption, modern users are increasingly frustrated. Why? Because the once-revolutionary approach is failing to keep up with the evolving demands of today’s digital landscape. In this…
The Importance of Title Tags: Tips and Tricks to Optimize for SEO
When it comes to on-page SEO, there’s one element that plays a pivotal role in both search engine rankings and user engagement: the HTML title tag. Often overlooked, this small…
How to Reduce The Carbon Footprint of Your Website
On average, a web page produces 4.61 grams of CO2 for every page view; for whole sites, that amounts to hundreds of KG of CO2 annually. Reducing your website’s carbon footprint is…
How to Plan Your First Successful Website
Planning a new website can be exciting and — if you’re anything like me — a little daunting. Whether you’re an experienced freelancer, a team of hardened developers, or a…
Rock Solid WordPress Security: Keeping Your Business Safe
WordPress is the web’s favourite CMS (content management system), renowned for its low-entry level and vast array of themes and plugins. WordPress’s open-source nature allows for endless flexibility, catering to…