Note: This only works correctly in Safari. On Chrome, as of v39, there's a bug which prevents long strings from working. Change the string to something small like "hello world" and it works. Firefox as of v32 doesn't yet support the HTML5 Speech Synthesis API.