What audio format Spotify uses and how they transf

2019-07-09 20:14发布

this question is just out of pure curiosity.

I noticed, that when I sync my phone with my Spotify playlists, music is transfered really fast, I haven`t benchmarked or something, but it just feels times faster than just downloading 20 or so mp3s.

How they do it ? Is it some kind of special audio format ? Or maybe they compress the data somehow when transfering ?

标签: audio spotify
2条回答
对你真心纯属浪费
2楼-- · 2019-07-09 20:32

This isn't really a programming question, but I'll bite.

Spotify uses OGG audio for its mobile clients. Depending on the quality you choose for offline syncing, it's either 96, 160 or 320 kbit/sec, and not really much different in size to the equivalent MP3 bitrate. However, the Spotify client and backend do have a very optimised network stack, so it's possible you're seeing this, but I'd be surprised if the latency benefits the network stack provides is enough to have a visible effect considering the vast majority of the time is spent actually downloading the track rather than requesting it.

查看更多
Fickle 薄情
3楼-- · 2019-07-09 20:36

The funny thing is that Spotify uses OGG to stream music, but it can't play local OGG files.

http://community.spotify.com/t5/Spotify-Ideas/Local-file-support-OGG-Vorbis/idi-p/5451

查看更多
登录 后发表回答