JSFiddle - React, Tailwind, and code Playground
HTML
<p>
<textarea id="text"></textarea>
</p>
<p>
<button id="speech">Speech</button>
</p>
CoffeeScript
$ ->
$("#speech").on "click", ->
u = new SpeechSynthesisUtterance
u.text = $("#text").val()
u.lang = "ja-JP"
speechSynthesis.speak(u)