Another way to say "the speed of sound depends on the medium" is "the medium determines the speed of sounds."