Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ def generate_story(theme):
|
|
| 34 |
|
| 35 |
@measure_performance
|
| 36 |
def gen_tts(text):
|
| 37 |
-
audio_arr = generate_audio(text,
|
| 38 |
audio_arr = (audio_arr * 32767).astype(np.int16)
|
| 39 |
return (SAMPLE_RATE, audio_arr)
|
| 40 |
|
|
|
|
| 34 |
|
| 35 |
@measure_performance
|
| 36 |
def gen_tts(text):
|
| 37 |
+
audio_arr = generate_audio(text, history_prompt="es_speaker_0")
|
| 38 |
audio_arr = (audio_arr * 32767).astype(np.int16)
|
| 39 |
return (SAMPLE_RATE, audio_arr)
|
| 40 |
|