This method sets the speaker volume.
function Speaker:SetVolume(volume)
-- Create a new speaker object local speaker = Speaker() -- Set the volume to 0.8 speaker:SetVolume(0.8)