We’ve been noticing an massive uptick in reports recently about “audio not being playable” in Clip It and we’ve discovered why.
If you use AssetService:SearchAudio Roblox will return results that can’t be played in game. This is harmful for our experience Clip It because we allow users to browse Roblox’s audio catalog for audio. We have found that the API returns audio that can’t be played in game.
If you enter this into your studio command bar (or paste it into a script) and check your output…
local AssetService = game:GetService("AssetService")
local audioSearchParams = Instance.new("AudioSearchParams")
audioSearchParams.SearchKeyword = "get out"
audioSearchParams.AudioSubType = Enum.AudioSubType.SoundEffect
local resultPages = AssetService:SearchAudio(audioSearchParams)
print(resultPages:GetCurrentPage())
You’ll see results like these…
Which we visualize for players in our experience’s “Insert Audio” interface like this:
When we try to play a sound from this page (such as the first result) we get these errors.
It doesn’t make sense for us to manually add the millions of audios Roblox has from this API. We would like for Roblox to either fix whatever issue is not allowing these audios to be played in our game, or to give us some way to filter out results that can’t be played from in-game (ideally using the AudioSearchParams
in the AssetService:SearchAudio
API that we use.