Add support for SpeechSynthesizer

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