IsSound(sound)The function checks if a variable or a value contains a valid MP3 file. It makes sense to check this before playing. Example:
$Tone = DownloadFile("https://toybasic.com/sounds/tone.mp3")
if IsSound($Tone)
PlaySound($Tone)
end if
See also: