rcell commited on
Commit
26e83c1
1 Parent(s): 422853a
Files changed (1) hide show
  1. app.py +1 -1
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) / 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,
 
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,