Thermodynamic measurement of the sound velocity of a Bose gas across the transition to Bose–Einstein condensation