Spotify will now use your listening history and preferences to find the perfect soundtrack for your run. The app will use the hardware in smartphones (accelerometers, etc.) to determine your pace and play back songs that precisely match your performance.

Source : Spotify will match music to your running pace | The Verge