Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Anthony Larcher
sidepipe
Commits
f328bce1
Commit
f328bce1
authored
May 11, 2016
by
Anthony Larcher
Browse files
stereo channel random noise
parent
2cf2e47e
Pipeline
#68
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
sstream.py
View file @
f328bce1
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment