fix: fixes aggregation in elevenlabs TTS (#153)

* chore: enhance media preview dialog

* fix: fixes elevenlabs tts service
This commit is contained in:
Abhishek 2026-02-12 15:41:44 +05:30 committed by GitHub
parent cff9674c9e
commit e1565246fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 81 additions and 93 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`.