Another way to say "the speed of sound depends on the medium" is "The speed of sound depends on the density of the medium"