Spaces:
Running
on
Zero
Running
on
Zero
Aboubacar OUATTARA - kaira
commited on
Commit
·
6c485e8
1
Parent(s):
497b5ce
add examples
Browse files
app.py
CHANGED
@@ -112,7 +112,7 @@ def _fn(
|
|
112 |
|
113 |
# Step 2: Convert the translated text to speech with reference audio
|
114 |
if reference_audio is not None:
|
115 |
-
audio_array, sampling_rate = text_to_speech(bambara_text, reference_audio)
|
116 |
else:
|
117 |
audio_array, sampling_rate = text_to_speech(bambara_text, reference_speaker=reference_speaker)
|
118 |
|
|
|
112 |
|
113 |
# Step 2: Convert the translated text to speech with reference audio
|
114 |
if reference_audio is not None:
|
115 |
+
audio_array, sampling_rate = text_to_speech(bambara_text, reference_speaker, reference_audio)
|
116 |
else:
|
117 |
audio_array, sampling_rate = text_to_speech(bambara_text, reference_speaker=reference_speaker)
|
118 |
|