How iandevlin/speechapi-examples works
This repository is a small Web Speech API example for controlling an HTML5 video by voice. A user starts or stops recognition with page controls; recognized, sufficiently confident commands are mapped to video playback, seeking, volume, and mute actions, with matching command feedback. The JavaScript excerpt supports the recognition and control flow; the HTML-to-script and page-to-video wiring is not shown, so those links are omitted.
Main entry points: video-speech.js Voice controller · index.html Example page
Components 6
Video voice control
- Example page
speechapi-video/index.html - Voice controller
speechapi-video/js/video-speech.js - Video player
speechapi-video/index.html - Bundled video
speechapi-video/video/big-buck-bunny.mp4
Browser capabilities
- Speech recognition
Other components
- User
Connections 5
- User → Example page: uses controls
- Voice controller → Speech recognition: starts and stops
speechapi-video/js/video-speech.js - Speech recognition → Voice controller: returns results
speechapi-video/js/video-speech.js - Voice controller → Video player: controls playback
speechapi-video/js/video-speech.js - Voice controller → Example page: highlights commands
speechapi-video/js/video-speech.js