chore: enhance media preview dialog

This commit is contained in:
Abhishek Kumar 2026-02-12 12:41:00 +05:30
parent cff9674c9e
commit 44bd4f15f6
6 changed files with 80 additions and 92 deletions

View file

@ -116,6 +116,10 @@ def create_aggregation_correction_callback(engine: "PipecatEngine"):
if corrupted in ref or len(alnum_ref) < len(alnum_corr) or len(alnum_corr) < 10:
return corrupted
logger.debug(
f"In correct_corrupted_aggregation: ref: {ref} corrupted: {corrupted}"
)
# 2) Find where in `ref` we should start aligning.
# We take the first N (N=10) characters of `corrupted`
# and look for all their occurrences in `ref`.