[RFC] Offload blocking TTS/speech ops to thread pool to unblock event loop (#2511)

Signed-off-by: Bvicii <yizhanhuang2002@gmail.com>
This commit is contained in:
Bvicii authored and GitHub committed 2026-04-07 00:17:04 -04:00
1 parent 5d4c9ec4fa
commit badbe8eb0f
3 files changed
+143 -8

No files matched your search

@@ -353,6 +353,7 @@ async def omni_run_server_worker(listen_address, sock, args, client_config=None,
try:
await shutdown_task
finally:
app.state.openai_serving_speech.shutdown()
sock.close()