-
Notifications
You must be signed in to change notification settings - Fork 58
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
when I run noise.py, met follows problem, can help find some causes? #1
Comments
Hi,
Your virtualenv requirements file should look like this:
|
same problem here: centos 7, sox 14.4.1 |
upgrade to sox 14.4.2 still got error File "noise/lib/python2.7/site-packages/pysndfx/dsp.py", line 276, in call |
python version? I'm running Python 3.6.0. |
I'm getting the same error. Is it any solutions available? |
Dodiku, what version of SoX are you using? |
this is what i'm getting: $ sox --version
sox: SoX v |
hm, it's strange. That's my output:
Also I found out that this error message caused by functions reduce_noise_centroid_s and reduce_noise_centroid_mb, where threshold_l has a zero value, but if set value threshold_l for example 100 this error message are not shown. |
Oh, great! Feel free to send a pull request with an update for the documentation (in the readme or in the code), or to handle this error in the code. Let me know if this issue can be closed. |
@aakash30jan yeah, I agree. Would you like to edit the code and send a pull request? |
I had the same problem as above. From a disc that failed, it became unavailable for recording, after repairing the disc, the audio file takes almost 3 hours of lecture. Tried to remove the noise. The computer hung up after a minute of the script. I had an idea to break 3 hours by 10 minutes ffmpeg. The first two files were cleared, and the rest did not want and gave an error, which is higher. Then the files that were not cleaned, I opened in Audacity and just saved with a slightly lower data transfer rate, it was 112, I saved it in 96 with a constant data transfer rate. The file itself was recorded on a dictaphone with two microphones. The right and left channels were different. In the right was the noise next to the recorder, and in the left channel there was a more distant noise. As a result, not all files worked, but most of them managed to be cleared of noise. The problem here is not in the script, but in the file itself, in the players, this audio file is played normally. Sorry for the English translator Google translator. |
@pobedyn worked with me too |
(py3virtualenv) [root@node1 noise_reduction]# python noise.py
Traceback (most recent call last):
File "noise.py", line 230, in
y_reduced_centroid_s = reduce_noise_centroid_s(y, sr)
File "noise.py", line 64, in reduce_noise_centroid_s
y_cleaned = less_noise(y)
File "/home/yunbin.zhang/virtualenvs/py3virtualenv/lib/python3.6/site-packages/pysndfx/d
sp.py", line 276, in call raise RuntimeError(stderr.decode())
RuntimeError: sox FAIL bass: usage: gain [frequency(100) width[s|h|k|q|o]]
The text was updated successfully, but these errors were encountered: