Doppler spectroscopy (also known as the radial-velocity method, or colloquially, the wobble method) is an indirect method for finding extrasolar planets and brown dwarfs from radial-velocity measurements via observation of Doppler shifts in the spectrum of the planet's parent star. It uses the Doppler effect to analyze the motion and properties of the star and planet. Both the planet and the star are orbiting a common center of mass. This means that the star and the planet gravitationally attract one another, causing them to orbit around a point of mass central to both bodies.
We can solve the formula of the velocity with this: v = c × Δλ/λ
Where λ is the wavelength emitted by the source, Δλ is the difference between λ and the wavelength measured by the observer, c is the speed of light, and v is the relative speed of the observer and the source in the line of the vision.