Still have questions? Join our Discord server and get real time help.
Log in to vote

Is it possible to achieve some level of text-to-speech on Roblox, and how?

Asked by 2 months ago
Edited 2 months ago

So my game requires EAS alerts, and I don't know how to set this up. The EAS, for those of you unaware, is the emergency alert system. It is used in the United States with automated Text to Speech software to send alerts regarding weather, usually. I don't know how I would achieve this on Roblox.

Theory 1: My first theory on this would be to use an external API. The problem is that that would give me an audio file, which I would not be able to do anything with without uploading it to Roblox. So this theory is out the window, unless Roblox allows us to play external audio files.

Theory 2: Voicelines. Use a TTS software, grab an MP3 of each line, then upload it (for 35 robux!). The problem with this method is that each storm has a different name, out of a list of 150+. This means that I would have to upload hundreds of audio files, costing more than I would like to imagine. So, no.

Theory 3: Record every phoneme in the English language (only 44). The problem is, I would have to create an algorithm to decode strings into their phonemes, then play the correct ones, at the correct times. Which would probably take months.

So what do you guys suggest I do?

EDIT: If possible, I would also like to do this without paying too too much, I'm just a poor boy.

this has nothing to do with scripting and is opinion based, down voted and started moderation raid6n 2290 — 2mo

1 answer

Log in to vote
Answered by
Raccoonyz 893 Donator Moderation Voter
2 months ago

Text to speech is extremely complicated to do. It's even more difficult when you have to upload the audio and pay Robux to get it approved.

Doing this would be extremely difficult, but it's possible. However, the only way to do it would cost a lot of robux and a lot of time.

My suggestion? Make a single line that says something along the lines of "Emergency: Storm incoming" and have the storm name pop up. That'd be very simple, and require little robux and time.

But let's say that you have a lot of robux, and you REALLY want this.

First, you'd need some Javascript experience. You'd need to find some API that'd allow you to do text to speech.

The noblox.js npm module allows you to upload audio - you can use this with the text to speech api in order to upload audio. Here's the function you'd need to use:

uploadItem returns a promise with the uploaded item's id. When you upload it, you can print the id, and there. You now have an automatically uploaded text to speech audio.

Thank you for your feedback! <3 The_LogiNick 214 — 2mo
very interesting iiMegabyteGaming 654 — 2mo

Answer this question