Flux9665 commited on
Commit
509ace1
β€’
1 Parent(s): 8e89766

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -56,7 +56,7 @@ class TTS_Interface:
56
  durations=self.duration,
57
  pitch=self.pitch,
58
  energy=self.energy,
59
- phones=True).cpu().numpy()
60
  self.utterance_cloner.tts.set_utterance_embedding("reference_audios/german_female.wav")
61
  self.current_voice = "female"
62
  self.cloned_speech_female = self.utterance_cloner.tts(self.phones,
@@ -64,7 +64,7 @@ class TTS_Interface:
64
  durations=self.duration,
65
  pitch=self.pitch,
66
  energy=self.energy,
67
- phones=True).cpu().numpy()
68
 
69
  #######
70
  self.utterance_cloner.tts.set_utterance_embedding("reference_audios/german_male.wav")
 
56
  durations=self.duration,
57
  pitch=self.pitch,
58
  energy=self.energy,
59
+ input_is_phones=True).cpu().numpy()
60
  self.utterance_cloner.tts.set_utterance_embedding("reference_audios/german_female.wav")
61
  self.current_voice = "female"
62
  self.cloned_speech_female = self.utterance_cloner.tts(self.phones,
 
64
  durations=self.duration,
65
  pitch=self.pitch,
66
  energy=self.energy,
67
+ input_is_phones=True).cpu().numpy()
68
 
69
  #######
70
  self.utterance_cloner.tts.set_utterance_embedding("reference_audios/german_male.wav")