Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What are the audio formats and codecs supported ? #35

Closed
thismatters opened this issue Sep 16, 2023 · 1 comment
Closed

What are the audio formats and codecs supported ? #35

thismatters opened this issue Sep 16, 2023 · 1 comment
Labels
good first issue Good for newcomers

Comments

@thismatters
Copy link

The docs only mention .mp4, what codecs are supported for that format?

Are there any other formats supported?

@Rajaniraiyn
Copy link
Owner

Thanks to reaching me out.

Howler.js supports a wide array of audio codecs that have varying browser support ("mp3", "opus", "ogg", "wav", "aac", "m4a", "m4b", "mp4", "webm", ...), but if you want full browser coverage you still need to use at least two of them. If your goal is to have the best balance of small filesize and high quality, based on extensive production testing, your best bet is to default to webm and fallback to mp3. webm has nearly full browser coverage with a great combination of compression and quality. You'll need the mp3 fallback for Internet Explorer.

Since svelte-sound uses Howler.js library under-the-hood you can have a look at their recomendations here.

I'll update the same in the docs too.

@Rajaniraiyn Rajaniraiyn changed the title Sound formats and codecs What are the audio formats and codecs supported ? Sep 17, 2023
@Rajaniraiyn Rajaniraiyn pinned this issue Sep 17, 2023
@Rajaniraiyn Rajaniraiyn added the good first issue Good for newcomers label Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants