The Earth's orbital speed can be calculated by analyzing the Doppler shift in the spectrum of a star as the Earth moves in its orbit. As the Earth orbits the Sun, its velocity changes the observed wavelength of light from the star, causing a shift towards the red or blue end of the spectrum depending on whether the Earth is moving away or towards the star. This shift can be measured to determine the component of the Earth's velocity relative to the star. Over a year, the Earth's motion creates a full 360-degree rotation, affecting the observed spectrum at different times. Understanding these shifts allows astronomers to accurately calculate the Earth's orbital speed.