Debug
Browse files
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(
|
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
|