title: Mary TTS with HTML/JavaScript and PHP
body: <p>I installed Mary TTS (version 5.1.2) on my Windows (and Linux computers).
  I started the Mary TTS server and the Mary TTS client, and I did some trials with text to audio conversion in the GUI window (its great).</p>
  
  <p>I would like to use Mary TTS on my website to read text aloud, where a user can add a text into the input field and generate the output like in the GUI window, without using the java client.</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;input type="text" id="text"&gt;
  &lt;button onclick="play('text');"&gt;Speak it&lt;/button&gt;
  
  &lt;script&gt;
  function play(id){
      var text = document.getElementById(id).value;
      var a = new Audio(text);
          a.play();
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>Just to get started.. I can't realize how to do that in HTML/JavaScript and PHP? </p>