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

Opus amplification of background tone/noise. #382

Open
bateyejoe opened this issue Dec 11, 2024 · 0 comments
Open

Opus amplification of background tone/noise. #382

bateyejoe opened this issue Dec 11, 2024 · 0 comments

Comments

@bateyejoe
Copy link

I'm running into an issue where a very low volume (pretty much inaudible) tone present in the background is being amplified and distorted into a loud screech. The tone in the 8kHz input signal is composed of a repeating pattern of five zero samples followed by a single sample at positive 8 on the linear-16 scale. So essentially a 1333Hz very low hum. It just seems to always be there in audio received from a specific VOIP carrier.

In the following screen cap, the top waveform is the input signal (mostly silence with a few background noises) and the bottom waveform is the output after compressing to Opus and decompressing to 48kHz linear-16.
Input_and_output_waveforms

I was able to reproduce this with the Opus 1.5.2 distribution compiled under/for Windows using cmake with the following configuration:
cmake .. -DOPUS_DRED=OFF -DOPUS_PLC=ON -DOPUS_OSCE=ON

In the attached zip I've included a source file of a simple app that reads raw u-law/8kHz from a file, compresses to opus, decompresses to linear-16 at 48kHz. I've also included an example file containing the troublesome input signal. This code, and the provided input file are what produced the waveforms above. Consult the source file to see how the encoder and decoder are configured.

The system these were built/run on was Core i9-13900 running Windows 11 (10.0.26100.2314) and both Opus and the executable were built using MSVC 19.40.33812 (Visual Studio 2022).

opus_gain_bug.zip

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

1 participant