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

Support sampling rates beyond 48 kHz #371

Open
HT-7 opened this issue Oct 18, 2024 · 2 comments
Open

Support sampling rates beyond 48 kHz #371

HT-7 opened this issue Oct 18, 2024 · 2 comments

Comments

@HT-7
Copy link

HT-7 commented Oct 18, 2024

If the predecessor Vorbis supports up to 200 kHz, why doesn't Opus?

Even if 48 kHz sampling is more than enough for human hearing, higher frequencies could be useful for things like dog whistles.

Also, 96 kHz might improve the clarity of high tones since there are more samples available per tone.

@silverbacknet
Copy link
Contributor

silverbacknet commented Oct 18, 2024

Because there's a vast well of scientific literature that 24kHz is already well above the threshold of hearing even in the most sensitive people, as is the default 20kHz lowpass. Not just published papers, but large public testing by standards committees, codec makers, and enthusiast sites like Hydrogen Audio, which far outweighs some vague worry that maybe something is being lost. This question has been asked and answered thousands of times. Most of us actually only hear quite a ways below that; mine maxes out around 17kHz these days.

If you want to make music for dogs, or just experiment with testing for your own ears, Opus does support any custom sampling rate you want. You just lose a lot of the unique tuning that makes Opus as good as it is when you go way outside the norm.

@jmvalin
Copy link
Member

jmvalin commented Oct 19, 2024

Also, 96 kHz might improve the clarity of high tones since there are more samples available per tone.

That statement strongly suggests you are unaware of the Nyquist–Shannon sampling theorem. I suggest you start from that page, or have a look at Monty excellent video on the topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants