., Hello, Eugenio.
., This API is available only for extensions. You can transfer your logic to an internal extension (people would have to install it for use, of course), create an extension that provides functions to the "outside world" (people still need to install the extension to use your application correctly) or just use a client synthesizer ( speak.js , for example).
., You can use the WebAudio API (or event tags) and calls to the TTS Google Translate endpoint, but it is not a public API and has no guarantees. It may just stop working due to some restrictions from Google, they can change the API or endpoints and yadda yadda. If this is for testing only, it will probably be, but if it is a larger project (or commercial), I highly recommend this option.
., Good luck.
source share