Add support for speech synthesizer and recognizer

This PR makes HTML5 speech synthesizer and web speech recognizer work on all platforms.

Fixes #586.