Open jmostella opened 3 years ago
W3C spec, reference links
Sample code for a standalone page
<!DOCTYPE html>
<html>
<body>
<p>Click to hear speech.</p>
<button onclick="blah()">Click me!</button>
<script>
function blah() {
// new SpeechSynthesisUtterance object
let utter = new SpeechSynthesisUtterance();
utter.lang = 'ja-JP';
utter.text = '大輔';
utter.volume = 2;
// speak
window.speechSynthesis.speak(utter);
}
</script>
</body>
</html>
Need to validate how to mark up text to define phonetics
Discussed options to research:
Plan here is to do the following: