osanseviero commited on
Commit
150d999
1 Parent(s): 1a8cc73

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -59,7 +59,7 @@ def load_audio_special(sr, data):
59
  norm_fix = 2 ** 15
60
  elif data.dtype == np.float16 or data.dtype == np.float32:
61
  norm_fix = 1.
62
- audio = torch.FloatTensor(data.astype(np.float32)) / norm_fix, sampling_rate)
63
 
64
  # Remove any channel data.
65
  if len(audio.shape) > 1:
@@ -85,7 +85,7 @@ def inference_own_voice(text, voice_1, voice_2, voice_3):
85
  conds = [
86
  load_audio_special(voice_1),
87
  load_audio_special(voice_2),
88
- load_audio_special(voice_1_3),
89
  ]
90
  print(text, conds, preset)
91
  gen = tts.tts_with_preset(text, conds, preset)
 
59
  norm_fix = 2 ** 15
60
  elif data.dtype == np.float16 or data.dtype == np.float32:
61
  norm_fix = 1.
62
+ audio = torch.FloatTensor(data.astype(np.float32)) / norm_fix, sampling_rate))
63
 
64
  # Remove any channel data.
65
  if len(audio.shape) > 1:
 
85
  conds = [
86
  load_audio_special(voice_1),
87
  load_audio_special(voice_2),
88
+ load_audio_special(voice_3),
89
  ]
90
  print(text, conds, preset)
91
  gen = tts.tts_with_preset(text, conds, preset)