perf(ai): 질문 TTS 세그먼트 look-ahead 선합성으로 문장 간 공백 제거#101
Merged
Conversation
순차 합성은 게이트웨이 문장당 지연(~4~6s)이 재생 길이와 비슷해 짧은 문장 뒤 무음이 생겼다(런타임 측정: 첫 문장 뒤 ~2.8s 공백). - 모든 문장을 _TTS_LOOKAHEAD(=2) 동시 한도로 미리 합성 시작, 발행은 문장 순서대로 await → 재생 순서=읽기 순서 유지 - seq 연속성·중간 실패 견고성은 그대로(성공분만 0..n 부여) - 꼬리질문의 무제한 병렬보다 보수적(429 방지) 런타임 재측정: 다음 세그먼트가 직전 재생 종료 전 준비되어 공백 0, 첫 음성까지는 ~0.5s 증가(동시 합성 트레이드오프). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
순차 합성은 게이트웨이 문장당 지연(
46s)이 재생 길이와 비슷해짧은 문장 뒤 무음이 생겼다(런타임 측정: 첫 문장 뒤 ~2.8s 공백).
런타임 재측정: 다음 세그먼트가 직전 재생 종료 전 준비되어 공백 0,
첫 음성까지는 ~0.5s 증가(동시 합성 트레이드오프).
변경 사항