<textarea id="textarea" rows=10 cols=80></textarea>
<button id="button"></button>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>

<script type="text/javascript">
  $(document).ready(function(){
    $('#button').on('click', function(){
      var stringToUtter = textarea.value;
      var utterance = new SpeechSynthesisUtterance(stringToUtter);
      window.speechSynthesis.speak(utterance);
    });
  });
</script>
Create basic demo to show how speechSynthesis works
Create basic demo to show how speechSynthesis works
