[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:
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()
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user