enter image description herethis is my first time trying to generate an SSN and I have been trying to run this code
`def gen_ssn_from_sig(signal):[enter image description here][2]
X = np.fft.rfft(signal)
noise_mag = np.abs(X) * np.exp(
2 * np.pi * 1j * np.random.random(X.shape[-1]))
noise = np.real(np.fft.irfft(noise_mag, signal.shape[-1]))
return noise`
which does not give me good results at all, looking at the photo. Does anyone have any advice on what the issue might be?
I expected the noise to be more appropriate to the speech signal
New contributor
Ammme is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.