The speed of a sound wave depends on the properties of the medium through which it moves and the only way to change the speed is to change the properties of the medium.
The speed of sound depends on medium.