Sound waves are a type of energy that is released when an object vibrates.
Sound waves travel in a straight line but when the sound waves enter a different medium it bends their actual path.
Fermat's principle states that the light travels between two points along the path which requires the least time and a straight line is a path that requires the least time.
Therefore, the Sound waves do not always travel in a straight line.