local AU = Instance.new("Sound")
AU.Parent = workspace
AU.SoundId = "rbxassetid://"..ID
AU.Volume = 0.5
AU:Play()
wait(5)
print(AU.PlaybackLoudness)
PlaybackLoudness just seems generally broken and unreliable but I need to use it because Roblox seems to allow “Highly disturbing audio” in terms of loudness, pitch and everything else that these “trollish” sounds have.
Of course, if Roblox decided to moderate this kind of audio then people like me wouldn’t have to practically scan the audio for inappropriate content with APIs that hardly work.
Id like to point out that since this topic has been bumped, I was kinda salty back when I made this
Yeah, I’ve thought about that too. I guess it really comes down to would you rather have peoples ears bleed or take an extra few hours to upload an audio. Then again, if they are using a sound that’s considered that bad for a game, they are better off getting a new sound.
It seems like PlaybackLoudness only works on the client. Are you reading it from the server?
Sidenote: it returned 0 when I played it in studio through the properties window, but returned the proper values when I did Sound:Play() first in the command bar.
Indeed, it seems to be a common problem. Many of the properties for audio don’t work on the server. Besides, the ‘proper’ way of doing it is to have all audio 100% local. The Server doesn’t actually play audio (Or could you imagine Roblox’s server room?), Roblox just made it more convenient for us to sync them using the server. Since FE though, they’ve been slowly withdrawing themselves from bad practices like that.
There are quite a few obnoxious audios that so clearly were not in a grey area and should have been declined, but I’m pretty sure whatever you’re thinking of doing by scanning (unless you want to specifically turn the audio off for some reason) the audio can be achieved with the two objects above.
I’m running it from a local script, i’ve also noticed that it works if you
do it from the command bar, but i cant seem to get it to work from a
localscript.