Dear Student ,
Yes , speed of sound waves depend on temperature but speed of light waves does not.As we know speed of the light is constant everywhere and in medium it becomes c/n where n is the refractive index of that medium.Also , sound travels by the vibrations of the molecule in any medium.If we increases the temperature , then there will be more collision in that medium.So , more will be be its speed.