This commit is contained in:
yumoqing 2024-08-06 16:27:26 +08:00
parent a41a7f7230
commit fb2bd4041c

View File

@ -66,7 +66,7 @@ async def generate(request, **kw):
fname = float32array_to_wav(audio) fname = float32array_to_wav(audio)
txt = await engine.stt(fname) txt = await engine.stt(fname)
os.remove(fname) os.remove(fname)
info(f'{audio=}, {txt=}') info(f'{txt=}')
return { return {
"status":"ok", "status":"ok",
"content":txt "content":txt