You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nfft = 512
fs = 8000
signal = np.loadtxt('signal.csv')
nr.reduce_noise(y=signal, sr=fs, n_fft=nfft, win_length=nfft, hop_length=100)
`
I tried with different values and it always gives the same error:
AttributeError: 'SpectralGateNonStationary' object has no attribute '_hop_length'
If I add hop_length parameter to the noise_reduce function, it gives an error:
`
import numpy as np
import noisereduce as nr
This works
nfft = 512
fs = 8000
signal = np.loadtxt('signal.csv')
nr.reduce_noise(y=signal, sr=fs, n_fft=nfft, win_length=nfft)
This does not work
nfft = 512
fs = 8000
signal = np.loadtxt('signal.csv')
nr.reduce_noise(y=signal, sr=fs, n_fft=nfft, win_length=nfft, hop_length=100)
`
I tried with different values and it always gives the same error:
AttributeError: 'SpectralGateNonStationary' object has no attribute '_hop_length'
signal.csv
The text was updated successfully, but these errors were encountered: