From 61ecdfea36bf82e524a8041ea3300dcc127ad5e7 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 4 Aug 2024 09:42:23 +0800 Subject: [PATCH] bugfix --- app/asr_engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/asr_engine.py b/app/asr_engine.py index 51f7ab8..b2a5671 100644 --- a/app/asr_engine.py +++ b/app/asr_engine.py @@ -20,7 +20,7 @@ async def generate(request, **kw): info(f'read from request stream {line=}') txt = await engine.stt(line) content += txt - d = json.dumps({'content':content}) + d = json.dumps({'content':content}) + '\n' btxt = d.encode('utf8') await resp.write(btxt) await resp.drain()