From 28b4471b28cce76c35a0188fc50210952d01c335 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 4 Sep 2024 19:47:17 +0800 Subject: [PATCH] bugfix --- rtcllm/stt.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rtcllm/stt.py b/rtcllm/stt.py index 92aabb2..0c73c7b 100644 --- a/rtcllm/stt.py +++ b/rtcllm/stt.py @@ -35,6 +35,9 @@ opts = { async def asr(a_file): oc = OAuthClient(DictObject(**opts)) + r = await oc('http://open-computing.cn', 'asr', {'audio_file':f}) + print(f'{r=}') + return r with open(a_file, 'rb') as f: async with aiohttp.ClientSession() as session: async with session.post("http://open-computing.cn/asr/generate", data={