Which browsers (if any) support SSML (Speech Synthesis Markup Language), specifically for speaking a single phoneme (such as the /h/ sound)?
The MDN suggests that it is supported but when I tried the demo it spoke the literal SSML I sent it (rather than speaking "tomato" )
What am I missing?
const synth = window.speechSynthesis;
const inputForm = document.querySelector("form");
const inputTxt = document.querySelector("input");
const voiceSelect = document.querySelector("select");
const voices = synth.getVoices();
const SSML = '<speak version="1.0" xmlns="" xml:lang="en-US"> <voice name="en-US-AvaNeural"> <phoneme alphabet="ipa" ph="tə.ˈmeɪ.toʊ"> tomato </phoneme> </voice></speak>'
const utterThis = new SpeechSynthesisUtterance(SSML);
console.log(utterThis.text);
synth.speak(utterThis);