You can easily add a GUI for the user to interact with Speech Recognition using Speech KITT.
Speech KITT makes it easy to add a graphical interface for the user
to start or stop Speech Recognition and see its current status. KITT
also provides clear visual hints to the user on how to interact with
your site using their voice, providing instructions and sample commands.
Speech KITT is fully customizable and comes with many different themes, and instructions on how to create your own designs.
<script src="//cdnjs.cloudflare.com/ajax/libs/annyang/2.6.1/annyang.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/SpeechKITT/0.3.0/speechkitt.min.js"></script>
<script>if (annyang) { // Add our commands to annyang annyang.addCommands({ 'hello': function() { alert('Hello world!'); } }); // Tell KITT to use annyang SpeechKITT.annyang(); // Define a stylesheet for KITT to use SpeechKITT.setStylesheet('//cdnjs.cloudflare.com/ajax/libs/SpeechKITT/0.3.0/themes/flat.css'); // Render KITT's interface SpeechKITT.vroom();}</script>
For help with setting up a GUI with KITT, check out the Speech KITT page.