From 67b5542b1531c29fb2bf418dc4bbb1b216168b09 Mon Sep 17 00:00:00 2001 From: Bifang <915779419@qq.com> Date: Wed, 30 Sep 2026 14:11:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E7=90=86=E8=BF=87=E7=A8=8B=E4=B8=AD?= =?UTF-8?q?=EF=BC=8C=E7=81=B0=E8=89=B2=E5=BE=85=E7=A1=AE=E8=AE=A4=E6=B0=94?= =?UTF-8?q?=E6=B3=A1=E7=8E=B0=E5=9C=A8=E4=BC=9A=E9=9A=8F=20Qwen=20?= =?UTF-8?q?=E6=9C=80=E6=96=B0=E4=B8=B4=E6=97=B6=E7=BB=93=E6=9E=9C=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=EF=BC=8C=E5=85=81=E8=AE=B8=E6=96=87=E5=AD=97=E5=9B=9E?= =?UTF-8?q?=E6=94=B9=EF=BC=9B=E5=AE=9A=E7=A8=BF=E4=BB=8D=E8=B5=B0=E5=8E=9F?= =?UTF-8?q?=E6=9C=89=E5=A4=84=E7=90=86=E6=B5=81=E7=A8=8B=EF=BC=8C=E6=9C=80?= =?UTF-8?q?=E7=BB=88=E7=BB=93=E6=9E=9C=E4=BC=9A=E6=9B=BF=E6=8D=A2=E4=B8=B4?= =?UTF-8?q?=E6=97=B6=E6=B0=94=E6=B3=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/qwen3_websocket_asr.py | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/app/services/qwen3_websocket_asr.py b/app/services/qwen3_websocket_asr.py index 53f6b03..f7028f4 100644 --- a/app/services/qwen3_websocket_asr.py +++ b/app/services/qwen3_websocket_asr.py @@ -3156,11 +3156,18 @@ class Qwen3ASRService: ctx, visible_observed, ) - partial_display = self._append_only_partial_preview( - ctx, - visible_observed, - native_stream_snapshot=has_native_stream_snapshot, - ) + if has_native_stream_snapshot: + # 灰色待确认气泡用于展示 Qwen 当前快照,允许它随模型修正; + # final 候选仍使用上面的稳定文本,避免演示预览影响定稿。 + partial_display = self._trim_previous_segment_overlap( + ctx, + current, + ) + else: + partial_display = self._append_only_partial_preview( + ctx, + visible_observed, + ) partial_display = self._clip_partial_text(partial_display, ctx) if ( partial_display