Smallest audio file: MP3, Ogg, or Wav?

后端 未结 4 1264
-上瘾入骨i
-上瘾入骨i 2021-02-05 04:30

I\'m looking for the smallest type of audio file for some javascript to work smoother.

4条回答
  •  误落风尘
    2021-02-05 05:25

    Of those three, Ogg would usually be smaller than MP3. Both would be much smaller than the uncompressed WAV. Of course, there may be other factors that come into play for your site such as quality (not too much of a noticeable difference for most purposes) and browser support for each type.

    The file size will only affect the time it takes to download the file to the user's machine. It won't necessarily determine Javascript execution speed. There may be other things in your code causing the performance drops (unless you've narrowed it down to the file size of the audio files).

提交回复
热议问题