Update prosody_preprocessor.py
Browse files- prosody_preprocessor.py +1 -1
prosody_preprocessor.py
CHANGED
|
@@ -245,7 +245,7 @@ def interpolate(self):
|
|
| 245 |
pitch = medfilt(pitch, self.SMOOTH_FACTOR)
|
| 246 |
try:
|
| 247 |
if first_sample == 0:
|
| 248 |
-
# This
|
| 249 |
if edges[0] == 0:
|
| 250 |
edges[0] = 1
|
| 251 |
pitch[:edges[0]-1] = pitch[edges[0]]
|
|
|
|
| 245 |
pitch = medfilt(pitch, self.SMOOTH_FACTOR)
|
| 246 |
try:
|
| 247 |
if first_sample == 0:
|
| 248 |
+
# This if statement fixes the bug that caused the whole f0 to be flattened
|
| 249 |
if edges[0] == 0:
|
| 250 |
edges[0] = 1
|
| 251 |
pitch[:edges[0]-1] = pitch[edges[0]]
|