fix: TTS朗读失败且刷新内容 — 安装edge-tts,前端改用blob播放代替downloadFile
This commit is contained in:
@@ -111,9 +111,7 @@ async def text_to_speech_get(
|
||||
if not audio:
|
||||
raise HTTPException(status_code=501, detail="TTS not available")
|
||||
|
||||
return Response(content=audio, media_type="audio/mpeg", headers={
|
||||
"Content-Disposition": f'attachment; filename="tts-{lang}.mp3"',
|
||||
})
|
||||
return Response(content=audio, media_type="audio/mpeg")
|
||||
|
||||
|
||||
@router.post("/feedback")
|
||||
|
||||
Reference in New Issue
Block a user