Speed of sound vs. elevation
The subject isn't what creates the speed of sound, it's how the speed of sound varies with altitude.
As ambient T decreases with altitude, the speed of sound follows suit..
As "density altitude" increases with temperature above ambient, the effect on the airplane is to degrade the airplane's performance.
See message #2.