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

Noise at the start of every processed audio #200

Open
Domhnall-Liopa opened this issue Dec 10, 2021 · 1 comment
Open

Noise at the start of every processed audio #200

Domhnall-Liopa opened this issue Dec 10, 2021 · 1 comment

Comments

@Domhnall-Liopa
Copy link

Hi, thanks for the great work.

When I pass any audio file to the tool, it always seems to miss a short bit of noise at the start of the audio. The noise is removed from the rest of the audio.

I use the following commands with ffmpeg version 4.4.1:

# 1. convert audio file to correct sample rate and codec
ffmpeg -y -i audio.wav -ac 1 -ar 48000 -f s16le -acodec pcm_s16le audio.pcm

# 2. run rnnoise with previous output
/opt/rnnoise/examples/rnnoise_demo audio.pcm audio_noise_removed.pcm

# 3. pcm to wav
ffmpeg -y -f s16le -ar 48000 -ac 1 -i audio_noise_removed.pcm audio_noise_removed.wav

# 4. convert back to previous sample rate
ffmpeg -y -i audio_noise_removed.wav -ac 1 -vn -acodec pcm_s16le -ar 16000 audio_denoised.wav

I've attached an example:
Original audio: https://drive.google.com/file/d/1pCnaLsBgc-wYDkI_ucMPDizKA7dp7KXH/view?usp=sharing
Output audio: https://drive.google.com/file/d/1m2cu-8OgAMDyQRcgDqskRilegxCNL5Ju/view?usp=sharing

Have you any ideas why this might be?

@egorsmkv
Copy link

Hi, have you solved this?

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

2 participants