Files
OpenMAIC/lib/hooks
57eb8486a1 feat(generation): parallelize within-scene TTS generation (#696)
Follow-up to #660. generateTTSForScene rendered a scene's speech clips
one at a time. Within a scene the speech actions are independent — each
writes its own audio under its own audioId, no ordering/carry-over — so
when the server opts into parallel generation (PARALLEL_SCENE_CONCURRENCY
> 1, the #660 knob) render them with bounded concurrency via
mapWithConcurrency. Default (0/unset) is byte-for-byte the original serial
loop; the bound respects TTS providers' 429 quotas. Per-clip failures are
still counted (not thrown), so one bad clip never aborts the scene.

Closes #695

Co-authored-by: ly-wang19 <ly-wang19@users.noreply.github.com>
Co-authored-by: wyuc <wang-yc24@mails.tsinghua.edu.cn>
2026-07-12 21:56:55 +08:00
..