Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -339,7 +339,8 @@ async def tts_endpoint(
|
|
| 339 |
with open(file_path, "wb") as f:
|
| 340 |
f.write(await audio_file.read())
|
| 341 |
|
| 342 |
-
|
|
|
|
| 343 |
return FileResponse(output_wav, media_type="audio/wav", filename="output.wav")
|
| 344 |
|
| 345 |
import uvicorn
|
|
|
|
| 339 |
with open(file_path, "wb") as f:
|
| 340 |
f.write(await audio_file.read())
|
| 341 |
|
| 342 |
+
output_path = os.path.join(OUTPUT_DIR, "out_test.wav")
|
| 343 |
+
output_wav = inference_by_model(text, file_path,output_path)
|
| 344 |
return FileResponse(output_wav, media_type="audio/wav", filename="output.wav")
|
| 345 |
|
| 346 |
import uvicorn
|