Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def text_to_speech(bambara_text, reference_speaker: str, reference_audio: Option
|
|
49 |
tmp_path = tmp.name
|
50 |
|
51 |
# Use the temporary file as the speaker reference
|
52 |
-
sr, audio = tts.text_to_speech(bambara_text, speaker_reference_wav_path=tmp_path)
|
53 |
|
54 |
# Clean up the temporary file
|
55 |
os.unlink(tmp_path)
|
|
|
49 |
tmp_path = tmp.name
|
50 |
|
51 |
# Use the temporary file as the speaker reference
|
52 |
+
sr, audio = tts.text_to_speech(bambara_text, speaker_reference_wav_path=tmp_path, enable_text_splitting=True)
|
53 |
|
54 |
# Clean up the temporary file
|
55 |
os.unlink(tmp_path)
|