Skip to content

Commit

Permalink
read the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
astorfi committed Nov 23, 2017
1 parent 17992e0 commit 1e1a951
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions speechpy/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ def cmvnw(vec, win_size=301, variance_normalization=False):
# Get the shapes
rows, cols = vec.shape

# Windows size must be odd.
assert type(win_size) == int, "Size must be of type 'int'!"
assert win_size % 2 == 1, "Windows size must be odd!"

# Padding and initial definitions
pad_size = int((win_size - 1) / 2)
vec_pad = np.lib.pad(vec, ((pad_size, pad_size), (0, 0)), 'symmetric')
Expand Down

0 comments on commit 1e1a951

Please sign in to comment.