Spaces:
Runtime error
Runtime error
fix
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ from text.symbols import symbols
|
|
17 |
from text import text_to_sequence
|
18 |
def resize2d(source, target_len):
|
19 |
source[source<0.001] = np.nan
|
20 |
-
target = np.interp(np.arange(0, len(source), len(source)
|
21 |
return np.nan_to_num(target)
|
22 |
def convert_wav_22050_to_f0(audio):
|
23 |
tmp = librosa.pyin(audio,
|
|
|
17 |
from text import text_to_sequence
|
18 |
def resize2d(source, target_len):
|
19 |
source[source<0.001] = np.nan
|
20 |
+
target = np.interp(np.arange(0, len(source)*target_len, len(source))/ target_len, np.arange(0, len(source)), source)
|
21 |
return np.nan_to_num(target)
|
22 |
def convert_wav_22050_to_f0(audio):
|
23 |
tmp = librosa.pyin(audio,
|