启用itntext处理定稿文本

main
Bifang 2026-10-10 17:33:35 +08:00
parent 826c65c96f
commit 93e58b95bc
1 changed files with 3 additions and 1 deletions

View File

@ -2752,10 +2752,12 @@ class Qwen3ASRService:
final_transcribe_started = time.perf_counter()
if funasr_streaming:
# Paraformer's AutoModel has no Qwen-style ITN switch; apply the
# existing project normalizer to final text when the UI enables it.
segment_text = self._normalize_output_text(
stream_text,
ctx,
enable_itn=False,
enable_itn=bool(ctx.params.get("enable_inverse_text_normalization", True)),
)
elif self._enable_realtime_longform(ctx):
segment_text = await self._transcribe_audio_longform_text(