启用itntext处理定稿文本
parent
826c65c96f
commit
93e58b95bc
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue