I’ve experimented with the recently added AudioTextToSpeech (TTS) instance.
This TTS was recently added in 2025, and I believe a calculated .TimeLength would definitely be an improvement. TimeLength can only be fetched after the audio starts playing, not before.
So TimeLength is not readily available the same way TimeLength for a sound instance might be.
What I am proposing is either a new API or a property that can calculate the TimeLength for TTS instances before the audio even starts playing.
I’m essentially proposing one of these:
local tts = instance.new("AudioTextToSpeech")
local text = "Hello World!"
local pre_TL = tts:GetTimeLengthFromText(text)
local pre_TL = tts.CalculatedTimeLength
print(pre_TL.."s")
Output: 0.764s
The reason I know it’s 0.764s is because I was experimenting with AudioTextToSpeech and i’ve tried using it in so many ways I know a bit about it. I wouldn’t say I’m an expert on it, but I literally built a debugging tool to figure out why I could not get an accurate TimeLength.
Basically I was trying to figure out how much time left I had until the message I was playing was over but I couldn’t do:
tts:Play()
task.wait(tts.TimeLength)
Because TimeLength was not being displayed for me until after the tts message had already finished playing.
I was like, what?? It has the same properties as a normal sound instance though? Yet it’s not quite the same behaviour.
Here’s a showcase of the debugging tool that I made, and in this video you can clearly see the TimeLength is only available until after the desired message has stopped playing:
I also wanted to see just how far I can push the tts and I added drop down menus for each of the properties in my debugging tool:
Note: The reason the VoiceIds all have quotes around them is because when I first started using AudioTextToSpeech, I could not use a number. I could only use a string, and also the official documentation showed the VoiceIds as a string instead of a number, please view the official documentation at the bottom of this post.
I had to actually look under the hood and pretty much reverse engineer what was happening because I was pulling my hair out over something I thoguht was supposed to be simple. I know sometimes Studio sessions might behave different from live experiences, so I made that debugging tool.
Also side note: Some accounts might not have the ability to play TTS messages inside of studio but can use it in a live play session.
(This is also something I was pulling my hair out over because I was sitting there thinking something was wrong with my code, but I later learned people call accounts that can play tts instances in studio a “golden account”.)
Also please note I am not advertising a game or experience, this is directly tied to this, so if anyone would like to check out the TTS debugging tool I made on Roblox you can find it here:
Experience description: This is a Gui tool built to help you debug Roblox’s AudioTextToSpeech Instance. You can alter the properties using built-in dropdown menus that provide options for each property.
I’m also in the process of working on a 3D lab for the AudioTextToSpeech tool where you can connect wires/cables to colour-coded slots. I’m doing this as an experiment and to see just how far I can push the TTS instance.
Here’s a video of my LabWorks projects that uses 3D parts, and basically it would be really cool to be able to get the TimeLength before the audio plays.
It would be cool even if it was just something like:
print(tts.CalculatedTimeLength)
or
tts:GetTimeLengthFromText(“string”)
So here’s some more information how I even got the .TimeLength you seen in the video above:
What I do is play then a tenth of a second later I stop the audio and it fetches the correct TimeLength and I’m able to use that later in task.wait(newTimeLength)
Doing this does have its downsides though as it makes the audio somewhat glitchy / choppy, or it sounds like it slightly stutters.
Please let me know if something like this exists or not! I’ve checked the properties and even the Official Roblox Documentation for AudioTextToSpeech however I did not seemed to find anything.

