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
fix(cli): use sentence_info "sentence" field for segment text (#2983)
zhifu gao3cdb661ef0d3
diff --git a/funasr/cli.py b/funasr/cli.pyindex 07afd1abe..e8bf04c41 100644--- a/funasr/cli.py+++ b/funasr/cli.py@@ -145,7 +145,7 @@ def main():segments = []if "sentence_info" in result[0]:for seg in result[0]["sentence_info"]:- s = {"start": seg.get("start", 0), "end": seg.get("end", 0), "text": clean_text(seg.get("text", ""))}+ s = {"start": seg.get("start", 0), "end": seg.get("end", 0), "text": clean_text(seg.get("sentence") or seg.get("text", ""))}if args.spk and "spk" in seg:s["speaker"] = seg["spk"]segments.append(s)