Pressure variables such as temperature, humidity affect the speed of sound. The other variable is altitude.

https://www.engineeringtoolb...