The determination of the gas constant from the speed of sound