An echocardiogram bounces sound waves off the heart to create a picture of its chambers and valves.