Spaces:
Sleeping
Sleeping
Update app/main.py
Browse files- app/main.py +1 -1
app/main.py
CHANGED
|
@@ -39,7 +39,7 @@ async def speak(text: str):
|
|
| 39 |
|
| 40 |
os.rename(path, cache_path)
|
| 41 |
|
| 42 |
-
with open(
|
| 43 |
audio_bytes = f.read()
|
| 44 |
|
| 45 |
return Response(content=audio_bytes, media_type="audio/wav")
|
|
|
|
| 39 |
|
| 40 |
os.rename(path, cache_path)
|
| 41 |
|
| 42 |
+
with open(cache_path, "rb") as f:
|
| 43 |
audio_bytes = f.read()
|
| 44 |
|
| 45 |
return Response(content=audio_bytes, media_type="audio/wav")
|