Commit f328bce1 authored by Anthony Larcher's avatar Anthony Larcher

stereo channel random noise

parent 2cf2e47e
Pipeline #68 skipped
......@@ -236,7 +236,8 @@ class SStream(object):
x, rate = sidekit.frontend.io.read_audio(self.input_filename, self.sampling_rate)
# add random noise to avoid any issue due to zeros
x += 0.0001 * np.random.randn(len(x))
#x += 0.0001 * np.random.randn(np.product(x.shape)).reshape(x.shape)
x += 0.0001 * np.random.standard_normal(x.shape)
(yield None)
idx = 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment