Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -221,7 +221,7 @@ def generate_audio_kokoro(text, lang, selected_voice):
|
|
221 |
|
222 |
# Save to a temporary file
|
223 |
with tempfile.NamedTemporaryFile(suffix=".wav", delete=False) as temp_file:
|
224 |
-
sf.write(temp_file, full_audio,
|
225 |
temp_file_path = temp_file.name
|
226 |
|
227 |
print("Audio generated successfully.")
|
|
|
221 |
|
222 |
# Save to a temporary file
|
223 |
with tempfile.NamedTemporaryFile(suffix=".wav", delete=False) as temp_file:
|
224 |
+
sf.write(temp_file, full_audio, 24000, format='wav')
|
225 |
temp_file_path = temp_file.name
|
226 |
|
227 |
print("Audio generated successfully.")
|