Skip to content

Commit 33675d3

Browse files
committed
commit
1 parent 1aed950 commit 33675d3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

speechpy/processing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def round_half_up(number):
88

99

1010
def stack_frames(sig, sampling_frequency, frame_length=0.020, frame_stride=0.020, Filter=lambda x: numpy.ones((x,)),
11-
zero_padding=True):
11+
zero_padding=False):
1212
"""Frame a signal into overlapping frames.
1313
1414
:param sig: The audio signal to frame of size (N,).
@@ -24,7 +24,7 @@ def stack_frames(sig, sampling_frequency, frame_length=0.020, frame_stride=0.020
2424
# Initial necessary values
2525
length_signal = sig.shape[0]
2626
frame_sample_length = int(np.round(sampling_frequency * frame_length)) # Defined by the number of samples
27-
frame_stride = int(np.round(sampling_frequency * frame_stride))
27+
frame_stride = float(np.round(sampling_frequency * frame_stride))
2828

2929
# Check the feasibility of stacking
3030
if length_signal <= frame_sample_length:

0 commit comments

Comments
 (0)