Speech recognition requires Chrome (or another WebKit-based browser) and a microphone. Serve over http://localhost or https:// for it to work.
http://localhost
https://