Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Smallest audio file: MP3, Ogg, or Wav?

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

like image 783
Tony Avatar asked Jan 14 '12 01:01

Tony


People also ask

Which is smaller WAV or Ogg?

Show activity on this post. Of those three, Ogg would usually be smaller than MP3 . Both would be much smaller than the uncompressed WAV .

Which is smaller Ogg or MP3?

What is this? The OGG or OGG Vorbis is another compressed digital audio format. It is not as popular as the MP3, but smaller in file size, as it is even more compressed, so to say. Unlike the patented MP3, OGG is not constrained by any patents, since it is open source and free to all.

Which audio format is smallest?

OGG is usually the smallest audio file format.

Which file size is smaller MP3 or WAV?

MP3 and WAV are the most popular formats of compressed and uncompressed digital audio files, respectively. MP3 is a lossy compressed format with “unnecessary” info removed, making it smaller. WAV is an uncompressed format containing all the original audio information, making it larger.


2 Answers

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).

like image 160
keyboardP Avatar answered Sep 21 '22 17:09

keyboardP


2019: mp3 is your friend.

Type  | Compression  | Browser Support | Quality                | Size --------------------------------------------------------------------------- MP3   | Compressed   | Great           | Depends on compression | Small OGG   | Compressed   | Not so good     | Depends on compression | Smallest WAV   | Uncompressed | Good            | Best                   | Large 

mp3

ogg

wav

Browser support: mp3, ogg, wav

like image 25
evilReiko Avatar answered Sep 21 '22 17:09

evilReiko