Commit 5602a97b authored by Anthony Larcher's avatar Anthony Larcher

features debugged

parent f328bce1
Pipeline #188 skipped
......@@ -236,8 +236,10 @@ 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(np.product(x.shape)).reshape(x.shape)
x += 0.0001 * np.random.standard_normal(x.shape)
np.random.seed(0)
x[:, 0] += 0.0001 * np.random.randn(x.shape[0])
if x.shape[1] == 2:
x[:, 1] += 0.0001 * np.random.randn(x.shape[0])
(yield None)
idx = 0
......@@ -311,7 +313,6 @@ class SStream(object):
fs=self.sampling_rate,
shift=self.window_shift,
nwin=self._win_size)
vad = sidekit.frontend.vad.label_fusion([vad])[0]
# Apply smoothing on the labels
vad = sidekit.frontend.vad.label_fusion(vad)
......
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