Flux9665 commited on
Commit
dec7163
β€’
1 Parent(s): 298c2ff

Update InferenceInterfaces/Meta_FastSpeech2.py

Browse files
InferenceInterfaces/Meta_FastSpeech2.py CHANGED
@@ -47,7 +47,7 @@ class Meta_FastSpeech2(torch.nn.Module):
47
 
48
  def forward(self, text, view=False, durations=None, pitch=None, energy=None):
49
  with torch.no_grad():
50
- phones = self.text2phone.string_to_tensor(text).to(torch.device(self.device))
51
  mel, durations, pitch, energy = self.phone2mel(phones,
52
  return_duration_pitch_energy=True,
53
  utterance_embedding=self.default_utterance_embedding,
 
47
 
48
  def forward(self, text, view=False, durations=None, pitch=None, energy=None):
49
  with torch.no_grad():
50
+ phones = self.text2phone.string_to_tensor(text, input_phonemes=True).to(torch.device(self.device))
51
  mel, durations, pitch, energy = self.phone2mel(phones,
52
  return_duration_pitch_energy=True,
53
  utterance_embedding=self.default_utterance_embedding,