yes i know url [] exists, but i need a way to make it a sound.
play sound (url [https://synthesis-service.scratch.mit.edu/synth?locale=LOCALE&gender=GENDER&text=TEXT]) obviously won't work, because what url [https://synthesis-service.scratch.mit.edu/synth?locale=LOCALE&gender=GENDER&text=TEXT] is spitting out is MP3 data and not a sound.
This is actually more complicated than it may seem. I tried just creating a new sound that points to the url, but it won't play due to the CORS policy, which doesn't really make much sense because you can get the file data with a javascript fetch method.
It is important to note that this forum is not an instant messaging platform, and some posts can take days for someone to respond. Not to mention, it's sunday, and I've noticed that there is less activity on the forum on sundays than any other day of the week.
What you're asking for is actually something pretty complicated (because scratch is somehow blocking direct audio playback, but not regular fetching), and takes more knowledge of snap and javascript for someone to create (which rules out anyone who hasn't touched javascript), so you just have to be patient.
Edit: I'm also not entirely sure if you're technically even allowed to use this, since it's a scratch service that is meant to only be used on scratch (and scratch mods), not other websites.
I think it relies on the operating system's TTS. The voice continues speaking when you close the tab, and the voice is different with the same browser on different operating systems.
Unfortunately that does not work with the scratch tts, because CORS is blocking it. What's strange is that you can get the raw mp3 data with a simple fetch (basically just the (url []) block), so theoretically you can turn that into a data url and then use that.