<span id="word">{{Word}}</span>
<script>
var w = document.getElementById("word");
window.setTimeout("speak(w.innerHTML)", 500);
function speak(word) {
var speech = new SpeechSynthesisUtterance();
speech.text = word;
speech.volume = 1; // 0 to 1
speech.rate = 1; // 0.1 to 9
speech.pitch = 1; // 0 to 2, 1=normal
speech.voice = window.speechSynthesis
.getVoices()
.filter((v) => v.lang == "en-GB")[0];
speechSynthesis.cancel();
speechSynthesis.speak(speech);
}
</script>