Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def text_to_speech(text):
|
|
34 |
# truncate the text
|
35 |
text_str = text[:1024]
|
36 |
else:
|
37 |
-
text_str =
|
38 |
audio_data = tts.synthesize(text_str, "92")
|
39 |
temp_file.write(np.ascontiguousarray(audio_data))
|
40 |
return temp_file.name
|
|
|
34 |
# truncate the text
|
35 |
text_str = text[:1024]
|
36 |
else:
|
37 |
+
text_str = text
|
38 |
audio_data = tts.synthesize(text_str, "92")
|
39 |
temp_file.write(np.ascontiguousarray(audio_data))
|
40 |
return temp_file.name
|