Keeping it simple - the speed of sound in air increases with increasing temperatue. Rough numbers are 760 mph at sea level for a temp of 15 C and 660 mph at the tropopause for a temp
of -56 C
Not sure whether the same goes for the speed of sound in water?
Any Sonar experts out there?