From a8bb8edef5cc54db38aeac26387da31b397d45fe Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 4 Sep 2024 19:47:51 +0800 Subject: [PATCH] bugfix --- rtcllm/stt.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rtcllm/stt.py b/rtcllm/stt.py index 0c73c7b..d885076 100644 --- a/rtcllm/stt.py +++ b/rtcllm/stt.py @@ -34,6 +34,8 @@ opts = { } async def asr(a_file): + if not a_file: + return oc = OAuthClient(DictObject(**opts)) r = await oc('http://open-computing.cn', 'asr', {'audio_file':f}) print(f'{r=}')