Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -122,8 +122,9 @@ def master_fn(slider_value, input_text):
|
|
122 |
print(f"speaker_id = {slider_value}")
|
123 |
all_speech = []
|
124 |
for sentence in input_text.split("."):
|
125 |
-
|
126 |
-
|
|
|
127 |
|
128 |
audio_response = np.concatenate(all_speech)
|
129 |
return sampling_rate_response, audio_response
|
|
|
122 |
print(f"speaker_id = {slider_value}")
|
123 |
all_speech = []
|
124 |
for sentence in input_text.split("."):
|
125 |
+
if sentence != '' and sentence != ' ' and sentence != '\n':
|
126 |
+
sampling_rate_response, audio_chunk_response = tts_fn(slider_value, sentence)
|
127 |
+
all_speech.append(audio_chunk_response)
|
128 |
|
129 |
audio_response = np.concatenate(all_speech)
|
130 |
return sampling_rate_response, audio_response
|