huangmingming
2023-01-30 adcee8828ef5d78b575043954deb662a35e318f7
update the minimum size of audio
1个文件已修改
2 ■■■ 已修改文件
funasr/runtime/python/grpc/grpc_server.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/runtime/python/grpc/grpc_server.py
@@ -81,7 +81,7 @@
                    result["detail"] = "decoding data: %d bytes" % len(tmp_data)
                    result["text"] = ""
                    yield Response(sentence=json.dumps(result), user=req.user, action="decoding", language=req.language)
                    if len(tmp_data) < 800: #min input_len for asr model
                    if len(tmp_data) < 9600: #min input_len for asr model , 300ms
                        end_time = int(round(time.time() * 1000))
                        delay_str = str(end_time - begin_time)
                        result = {}