window.speechSynthesis

Hey,
I’m trying to make my site accessible. Are these APIs not supported?

var utterance = new SpeechSynthesisUtterance(‘Hello Treehouse’);
window.speechSynthesis.speak(utterance);

If so,

I can put this as an iFrame and it works, but I need a button click to trigger this. Can I control the HTML element through WixCode, and make the code run only when the user clicks an image?

Wix does not currently have a speech API. See the API documentation for a complete list of APIs.

You can pass messages from the HtmlComponent to the page (or from the page to the HtmlComponent). See the article Wix Code: Working with the HTML Element for information. You can also play with the Google Maps Example .