Echocardiography is a test that uses sound waves to produce live images of your heart. The image is an echocardiogram. This test allows your doctor to monitor how your heart and its valves are functioning. An echocardiogram is key in determining the health of the heart muscle, especially after a heart attack.