An observer can compute the speed of sound by dividing the distance between him and a firing cannon by the time it takes the sound to reach him.
Credits - NASA