Skip to content

Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.

modify grpc environment dependencies

北念42f90b4ca1fc
diff --git a/funasr/runtime/python/grpc/grpc_server.py b/funasr/runtime/python/grpc/grpc_server.py
index baa7ed59a..95fe96cdb 100644
--- a/funasr/runtime/python/grpc/grpc_server.py
+++ b/funasr/runtime/python/grpc/grpc_server.py
@@ -5,7 +5,6 @@ import time
import paraformer_pb2_grpc
from paraformer_pb2 import Response
-from rapid_paraformer.utils.frontend import load_bytes
class ASRServicer(paraformer_pb2_grpc.ASRServicer):
@@ -110,6 +109,7 @@ class ASRServicer(paraformer_pb2_grpc.ASRServicer):
else:
asr_result = ""
elif self.backend == "onnxruntime":
+ from rapid_paraformer.utils.frontend import load_bytes
array = load_bytes(tmp_data)
asr_result = self.inference_16k_pipeline(array)[0]
end_time = int(round(time.time() * 1000))