mosha255 commited on
Commit
90ff39a
·
unverified ·
1 Parent(s): 7c6f92f
Files changed (1) hide show
  1. tts.py +1 -1
tts.py CHANGED
@@ -27,7 +27,7 @@ with open(lightspeech_processor_config, "r") as f:
27
  class TTS:
28
  @staticmethod
29
  def generate(text: str) -> np.ndarray:
30
- sections = TTS.split_text(pre_processed)
31
  audio_sections = TTS.generate_speech_for_sections(sections)
32
  concatenated_audio = TTS.concatenate_audio_sections(audio_sections)
33
  return concatenated_audio
 
27
  class TTS:
28
  @staticmethod
29
  def generate(text: str) -> np.ndarray:
30
+ sections = TTS.split_text(text)
31
  audio_sections = TTS.generate_speech_for_sections(sections)
32
  concatenated_audio = TTS.concatenate_audio_sections(audio_sections)
33
  return concatenated_audio