Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.
Python asraudiochineseemotion-recognitionfunasrmcp-servermultilingual-asropenai-compatible-apiparaformerpunctuationpytorchreal-time-asrspeaker-diarizationspeech-recognitionspeech-to-textstreaming-asrtranscriptionvllmvoice-activity-detectionwhisper-alternative
update tips for wait_for_more_voice
huangmingmingb40127f9b86f
diff --git a/funasr/runtime/python/grpc/grpc_main_client_mic.py b/funasr/runtime/python/grpc/grpc_main_client_mic.pyindex c393d4ad0..d3f34bb96 100644--- a/funasr/runtime/python/grpc/grpc_main_client_mic.py+++ b/funasr/runtime/python/grpc/grpc_main_client_mic.py@@ -44,8 +44,7 @@ async def deal_chunk(sig_mic):#print ("silence, end_time: %d " % end_time)print ("delay in ms: %d " % (end_time - begin_time))else:- #debug- print (resp.action + " " + str(json.loads(resp.sentence)))+ #print (resp.action + " " + str(json.loads(resp.sentence)))passdiff --git a/funasr/runtime/python/grpc/grpc_server.py b/funasr/runtime/python/grpc/grpc_server.pyindex 9165c1f07..292492534 100644--- a/funasr/runtime/python/grpc/grpc_server.py+++ b/funasr/runtime/python/grpc/grpc_server.py@@ -69,7 +69,7 @@ class ASRServicer(paraformer_pb2_grpc.ASRServicer):if req.user not in self.client_buffers:result = {}result["success"] = True- result["detail"] = "waiting_for_voice"+ result["detail"] = "waiting_for_more_voice"result["text"] = ""yield Response(sentence=json.dumps(result), user=req.user, action="waiting", language=req.language)else:@@ -86,11 +86,11 @@ class ASRServicer(paraformer_pb2_grpc.ASRServicer):delay_str = str(end_time - begin_time)result = {}result["success"] = True- result["detail"] = "finish_sentence_data_is_not_long_enough"+ result["detail"] = "waiting_for_more_voice"result["server_delay_ms"] = delay_strresult["text"] = ""- print ("user: %s , delay(ms): %s, error: %s " % (req.user, delay_str, "data_is_not_long_enough"))- yield Response(sentence=json.dumps(result), user=req.user, action="finish", language=req.language)+ print ("user: %s , delay(ms): %s, info: %s " % (req.user, delay_str, "waiting_for_more_voice"))+ yield Response(sentence=json.dumps(result), user=req.user, action="waiting", language=req.language)else:asr_result = self.inference_16k_pipeline(audio_in=tmp_data, audio_fs = self.sample_rate)if "text" in asr_result: