Spotify使用哪种音频格式,以及它们如何将文件传输到移动设备? [英] What audio format Spotify uses and how they transfer the files to mobile devices?

查看:570
本文介绍了Spotify使用哪种音频格式,以及它们如何将文件传输到移动设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题纯粹出于好奇.

this question is just out of pure curiosity.

我注意到,当我将手机与Spotify播放列表同步时,音乐传输速度非常快,我还没有进行基准测试或其他测试,但是感觉比下载20多个mp3快很多.

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 ?

推荐答案

这实际上不是编程问题,但我会咬一口.

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

Spotify将OGG音频用于其移动客户端.根据您为离线同步选择的质量,它为96、160或320 kbit/sec,并且在大小上与等效的MP3比特率并没有太大差异.但是,Spotify客户端和后端确实具有非常优化的网络堆栈,因此您看到的是 possible ,但是如果网络堆栈提供的延迟优势足以让您拥有一个考虑到大部分时间都花在实际下载曲目而不是请求它上的可见效果.

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.

这篇关于Spotify使用哪种音频格式,以及它们如何将文件传输到移动设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆