Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -105,7 +105,7 @@ def tts_inference(text, engine, model_file, voice_file, speed=1.0):
|
|
105 |
voicepack.eval()
|
106 |
|
107 |
# 6) Generate TTS
|
108 |
-
audio, phonemes = gen_fn(model, response_from_llama.choices[0].message, voicepack, speed=speed)
|
109 |
sr = 22050 # or your actual sample rate
|
110 |
|
111 |
return (sr, audio) # Gradio expects (sample_rate, np_array)
|
|
|
105 |
voicepack.eval()
|
106 |
|
107 |
# 6) Generate TTS
|
108 |
+
audio, phonemes = gen_fn(model, response_from_llama.choices[0].message['content'], voicepack, speed=speed)
|
109 |
sr = 22050 # or your actual sample rate
|
110 |
|
111 |
return (sr, audio) # Gradio expects (sample_rate, np_array)
|