I’ve been messing around with the TTS blocks recently, and I’ve been wondering why when you adjust the TTS voice, it’s just not that much of an adjustment… (i.e. On Scratch, some TTS voices include: Alto, tenor, squeak, giant)
I do like how you can change the pitch of the voice though, but, I kind of wish the lowest voice you can get wasn’t just an alto voice.
Online Microsoft Sam TTS Generator Is a website I like because you can adjust it and it can change very differently.
It relies on Web APIs. If you find a website with an API endpoint for TTS, you might be able to create your own TTS blocks.
I have no clue on how to do that, my bad
I don’t think you can make a sound from a web request
I’m not very good with APIs but you could get a data URI
No, I mean I don’t think you can natively play a sound in Snap from a string
Well obviously, you would have to use the Snap! 12 snd_load(url), or use MQTT library to decode from base64
It is entirely possible, and is exactly what scratch does. Snap 12 has a new (load sound from url [] :: sound) block (that I made) in the web services library. The only restriction is that the website has to have CORS enabled (it is technically possible to play audio files without CORS, but you can’t get the samples, so I just didn’t allow it).