title: How to run IBM Watson Text to speech in browser using javascript
body: <p>Can anyone tell me how to use my IAM api key and url to perform text to speech on a string stored on a variable and play the synthesized speech audio from within the browser?
  The WebSocket interface example gives me an authentication error, which leads to the download of a 0KB .oga file, which doesn't make any sense.</p>
  
  <p>Any help would be appreciated.</p>