oza75 commited on
Commit
799d009
·
verified ·
1 Parent(s): 9f73839

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)